| OLD | NEW |
| 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_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "android_webview/browser/aw_web_preferences_populater.h" | 8 #include "android_webview/browser/aw_web_preferences_populater.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
| 13 | 13 |
| 14 namespace net { |
| 15 class NetLog; |
| 16 } |
| 17 |
| 14 namespace android_webview { | 18 namespace android_webview { |
| 15 | 19 |
| 16 class AwBrowserContext; | 20 class AwBrowserContext; |
| 17 class JniDependencyFactory; | 21 class JniDependencyFactory; |
| 18 | 22 |
| 19 class AwContentBrowserClient : public content::ContentBrowserClient { | 23 class AwContentBrowserClient : public content::ContentBrowserClient { |
| 20 public: | 24 public: |
| 21 // This is what AwContentBrowserClient::GetAcceptLangs uses. | 25 // This is what AwContentBrowserClient::GetAcceptLangs uses. |
| 22 static std::string GetAcceptLangsImpl(); | 26 static std::string GetAcceptLangsImpl(); |
| 23 | 27 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 174 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
| 171 const GURL& url, | 175 const GURL& url, |
| 172 content::WebPreferences* web_prefs) OVERRIDE; | 176 content::WebPreferences* web_prefs) OVERRIDE; |
| 173 #if defined(VIDEO_HOLE) | 177 #if defined(VIDEO_HOLE) |
| 174 virtual content::ExternalVideoSurfaceContainer* | 178 virtual content::ExternalVideoSurfaceContainer* |
| 175 OverrideCreateExternalVideoSurfaceContainer( | 179 OverrideCreateExternalVideoSurfaceContainer( |
| 176 content::WebContents* web_contents) OVERRIDE; | 180 content::WebContents* web_contents) OVERRIDE; |
| 177 #endif | 181 #endif |
| 178 | 182 |
| 179 private: | 183 private: |
| 184 scoped_ptr<net::NetLog> net_log_; |
| 180 // Android WebView currently has a single global (non-off-the-record) browser | 185 // Android WebView currently has a single global (non-off-the-record) browser |
| 181 // context. | 186 // context. |
| 182 scoped_ptr<AwBrowserContext> browser_context_; | 187 scoped_ptr<AwBrowserContext> browser_context_; |
| 183 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; | 188 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; |
| 184 | 189 |
| 185 JniDependencyFactory* native_factory_; | 190 JniDependencyFactory* native_factory_; |
| 186 | 191 |
| 187 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 192 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| 188 }; | 193 }; |
| 189 | 194 |
| 190 } // namespace android_webview | 195 } // namespace android_webview |
| 191 | 196 |
| 192 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 197 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |