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

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

Issue 1172093002: Implement HttpUserAgentSettings delegate for Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New plumbing Created 5 years, 5 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
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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 public PermissionRequestHandlerClient, 61 public PermissionRequestHandlerClient,
62 public AwBrowserPermissionRequestDelegate { 62 public AwBrowserPermissionRequestDelegate {
63 public: 63 public:
64 // Returns the AwContents instance associated with |web_contents|, or NULL. 64 // Returns the AwContents instance associated with |web_contents|, or NULL.
65 static AwContents* FromWebContents(content::WebContents* web_contents); 65 static AwContents* FromWebContents(content::WebContents* web_contents);
66 66
67 // Returns the AwContents instance associated with with the given 67 // Returns the AwContents instance associated with with the given
68 // render_process_id and render_view_id, or NULL. 68 // render_process_id and render_view_id, or NULL.
69 static AwContents* FromID(int render_process_id, int render_view_id); 69 static AwContents* FromID(int render_process_id, int render_view_id);
70 70
71 static std::string GetLocale();
72
71 AwContents(scoped_ptr<content::WebContents> web_contents); 73 AwContents(scoped_ptr<content::WebContents> web_contents);
72 ~AwContents() override; 74 ~AwContents() override;
73 75
74 AwRenderViewHostExt* render_view_host_ext() { 76 AwRenderViewHostExt* render_view_host_ext() {
75 return render_view_host_ext_.get(); 77 return render_view_host_ext_.get();
76 } 78 }
77 79
78 // |handler| is an instance of 80 // |handler| is an instance of
79 // org.chromium.android_webview.AwHttpAuthHandler. 81 // org.chromium.android_webview.AwHttpAuthHandler.
80 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, 82 bool OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 GLViewRendererManager::Key renderer_manager_key_; 266 GLViewRendererManager::Key renderer_manager_key_;
265 267
266 DISALLOW_COPY_AND_ASSIGN(AwContents); 268 DISALLOW_COPY_AND_ASSIGN(AwContents);
267 }; 269 };
268 270
269 bool RegisterAwContents(JNIEnv* env); 271 bool RegisterAwContents(JNIEnv* env);
270 272
271 } // namespace android_webview 273 } // namespace android_webview
272 274
273 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 275 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698