| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "android_webview/browser/aw_web_preferences_populater.h" | |
| 13 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 13 #include "base/macros.h" |
| 15 #include "content/public/browser/content_browser_client.h" | 14 #include "content/public/browser/content_browser_client.h" |
| 16 | 15 |
| 17 namespace android_webview { | 16 namespace android_webview { |
| 18 | 17 |
| 19 class AwBrowserContext; | 18 class AwBrowserContext; |
| 20 class JniDependencyFactory; | 19 class JniDependencyFactory; |
| 21 | 20 |
| 22 class AwContentBrowserClient : public content::ContentBrowserClient { | 21 class AwContentBrowserClient : public content::ContentBrowserClient { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 std::unique_ptr<base::Value> GetServiceManifestOverlay( | 132 std::unique_ptr<base::Value> GetServiceManifestOverlay( |
| 134 base::StringPiece name) override; | 133 base::StringPiece name) override; |
| 135 void ExposeInterfacesToFrame( | 134 void ExposeInterfacesToFrame( |
| 136 service_manager::BinderRegistry* registry, | 135 service_manager::BinderRegistry* registry, |
| 137 content::RenderFrameHost* render_frame_host) override; | 136 content::RenderFrameHost* render_frame_host) override; |
| 138 | 137 |
| 139 private: | 138 private: |
| 140 // Android WebView currently has a single global (non-off-the-record) browser | 139 // Android WebView currently has a single global (non-off-the-record) browser |
| 141 // context. | 140 // context. |
| 142 std::unique_ptr<AwBrowserContext> browser_context_; | 141 std::unique_ptr<AwBrowserContext> browser_context_; |
| 143 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; | |
| 144 | 142 |
| 145 JniDependencyFactory* native_factory_; | 143 JniDependencyFactory* native_factory_; |
| 146 | 144 |
| 147 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 145 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| 148 }; | 146 }; |
| 149 | 147 |
| 150 } // namespace android_webview | 148 } // namespace android_webview |
| 151 | 149 |
| 152 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 150 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |