• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "android/jni/jni_utils.h"
6 #include "base/platform_file.h"
7 
8 #include <string>
9 
10 namespace android {
11 
12 uint64 contentUrlSize(const FilePath& name);
13 
14 class JavaISWrapper {
15 public:
16   JavaISWrapper(const FilePath& path);
17   ~JavaISWrapper();
18 
19   int Read(char* out, int length);
20 
21 private:
22   jobject    m_inputStream;
23   jmethodID  m_read;
24   jmethodID  m_close;
25 };
26 
27 }
28