OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SETTINGS_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_SETTINGS_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_SETTINGS_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/android/jni_weak_ref.h" | 12 #include "base/android/jni_weak_ref.h" |
13 #include "base/android/scoped_java_ref.h" | 13 #include "base/android/scoped_java_ref.h" |
14 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
15 | 15 |
16 namespace content{ | 16 namespace content { |
17 struct WebPreferences; | 17 struct WebPreferences; |
18 } | 18 } |
19 | 19 |
20 namespace android_webview { | 20 namespace android_webview { |
21 | 21 |
22 class AwRenderViewHostExt; | 22 class AwRenderViewHostExt; |
23 | 23 |
24 class AwSettings : public content::WebContentsObserver { | 24 class AwSettings : public content::WebContentsObserver { |
25 public: | 25 public: |
26 static AwSettings* FromWebContents(content::WebContents* web_contents); | 26 static AwSettings* FromWebContents(content::WebContents* web_contents); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 bool renderer_prefs_initialized_; | 72 bool renderer_prefs_initialized_; |
73 | 73 |
74 JavaObjectWeakGlobalRef aw_settings_; | 74 JavaObjectWeakGlobalRef aw_settings_; |
75 }; | 75 }; |
76 | 76 |
77 bool RegisterAwSettings(JNIEnv* env); | 77 bool RegisterAwSettings(JNIEnv* env); |
78 | 78 |
79 } // namespace android_webview | 79 } // namespace android_webview |
80 | 80 |
81 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ | 81 #endif // ANDROID_WEBVIEW_BROWSER_AW_SETTINGS_H_ |
OLD | NEW |