Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: android_webview/native/intercepted_request_data.h

Issue 10702083: Add ContentViewDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_
6 #define CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_ 6 #define CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 12
13 // This class represents the Java-side data that is to be used to complete a
14 // particular URLRequest.
13 class InterceptedRequestData { 15 class InterceptedRequestData {
14 public: 16 public:
15 InterceptedRequestData(JNIEnv* env, 17 InterceptedRequestData(const base::android::JavaRef<jobject>& obj);
16 base::android::JavaRef<jobject> obj);
17 ~InterceptedRequestData(); 18 ~InterceptedRequestData();
18 19
19 base::android::ScopedJavaLocalRef<jobject> GetInputStream(JNIEnv* env) const; 20 base::android::ScopedJavaLocalRef<jobject> GetInputStream(JNIEnv* env) const;
20 bool GetMimeType(JNIEnv* env, std::string* mime_type) const; 21 bool GetMimeType(JNIEnv* env, std::string* mime_type) const;
21 bool GetCharset(JNIEnv* env, std::string* charset) const; 22 bool GetCharset(JNIEnv* env, std::string* charset) const;
22 23
23 private: 24 private:
24 base::android::ScopedJavaGlobalRef<jobject> java_object_; 25 base::android::ScopedJavaGlobalRef<jobject> java_object_;
25 26
26 DISALLOW_COPY_AND_ASSIGN(InterceptedRequestData); 27 DISALLOW_COPY_AND_ASSIGN(InterceptedRequestData);
27 }; 28 };
28 29
29 bool RegisterInterceptedRequestData(JNIEnv* env); 30 bool RegisterInterceptedRequestData(JNIEnv* env);
30 31
31 #endif // CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_ 32 #endif // CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents_io_thread_client.cc ('k') | android_webview/native/intercepted_request_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698