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

Unified Diff: android_webview/native/aw_settings.h

Issue 23619089: [Android WebView] Populate WebKit WebPreferences correctly in browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_settings.h
diff --git a/android_webview/native/aw_settings.h b/android_webview/native/aw_settings.h
index 4c85c3e1e2ea3592587c228e285c148fe0572d91..29c477b2dadb03e978ae017a327ef300655b364d 100644
--- a/android_webview/native/aw_settings.h
+++ b/android_webview/native/aw_settings.h
@@ -12,12 +12,16 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/web_contents_observer.h"
+struct WebPreferences;
+
namespace android_webview {
class AwRenderViewHostExt;
class AwSettings : public content::WebContentsObserver {
public:
+ static AwSettings* FromWebContents(content::WebContents* web_contents);
+
AwSettings(JNIEnv* env, jobject obj, jint web_contents);
virtual ~AwSettings();
@@ -31,6 +35,8 @@ class AwSettings : public content::WebContentsObserver {
void UpdateWebkitPreferencesLocked(JNIEnv* env, jobject obj);
void UpdateFormDataPreferencesLocked(JNIEnv* env, jobject obj);
+ void PopulateWebPreferences(WebPreferences* web_prefs);
+
private:
AwRenderViewHostExt* GetAwRenderViewHostExt();
void UpdateEverything();
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698