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

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: rewritten for the new android_webview folder 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 class InterceptedRequestData { 13 class InterceptedRequestData {
joth 2012/09/01 01:24:14 class comment
mkosiba (inactive) 2012/09/11 01:22:25 Done.
14 public: 14 public:
15 InterceptedRequestData(JNIEnv* env, 15 InterceptedRequestData(const base::android::JavaRef<jobject>& obj);
16 base::android::JavaRef<jobject> obj);
17 ~InterceptedRequestData(); 16 ~InterceptedRequestData();
18 17
19 base::android::ScopedJavaLocalRef<jobject> GetInputStream(JNIEnv* env) const; 18 base::android::ScopedJavaLocalRef<jobject> GetInputStream(JNIEnv* env) const;
20 bool GetMimeType(JNIEnv* env, std::string* mime_type) const; 19 bool GetMimeType(JNIEnv* env, std::string* mime_type) const;
21 bool GetCharset(JNIEnv* env, std::string* charset) const; 20 bool GetCharset(JNIEnv* env, std::string* charset) const;
22 21
23 private: 22 private:
24 base::android::ScopedJavaGlobalRef<jobject> java_object_; 23 base::android::ScopedJavaGlobalRef<jobject> java_object_;
25 24
26 DISALLOW_COPY_AND_ASSIGN(InterceptedRequestData); 25 DISALLOW_COPY_AND_ASSIGN(InterceptedRequestData);
27 }; 26 };
28 27
29 bool RegisterInterceptedRequestData(JNIEnv* env); 28 bool RegisterInterceptedRequestData(JNIEnv* env);
30 29
31 #endif // CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_ 30 #endif // CONTENT_BROWSER_ANDROID_INTERCEPTED_REQUEST_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698