| 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> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 content::BrowserContext* browser_context, | 114 content::BrowserContext* browser_context, |
| 115 const GURL& url, | 115 const GURL& url, |
| 116 bool private_api, | 116 bool private_api, |
| 117 const content::SocketPermissionRequest* params) override; | 117 const content::SocketPermissionRequest* params) override; |
| 118 bool IsPepperVpnProviderAPIAllowed(content::BrowserContext* browser_context, | 118 bool IsPepperVpnProviderAPIAllowed(content::BrowserContext* browser_context, |
| 119 const GURL& url) override; | 119 const GURL& url) override; |
| 120 content::TracingDelegate* GetTracingDelegate() override; | 120 content::TracingDelegate* GetTracingDelegate() override; |
| 121 void GetAdditionalMappedFilesForChildProcess( | 121 void GetAdditionalMappedFilesForChildProcess( |
| 122 const base::CommandLine& command_line, | 122 const base::CommandLine& command_line, |
| 123 int child_process_id, | 123 int child_process_id, |
| 124 content::FileDescriptorInfo* mappings, | 124 content::FileDescriptorInfo* mappings) override; |
| 125 std::map<int, base::MemoryMappedFile::Region>* regions) override; | |
| 126 void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 125 void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
| 127 content::WebPreferences* web_prefs) override; | 126 content::WebPreferences* web_prefs) override; |
| 128 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( | 127 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( |
| 129 content::NavigationHandle* navigation_handle) override; | 128 content::NavigationHandle* navigation_handle) override; |
| 130 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; | 129 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; |
| 131 std::unique_ptr<base::Value> GetServiceManifestOverlay( | 130 std::unique_ptr<base::Value> GetServiceManifestOverlay( |
| 132 base::StringPiece name) override; | 131 base::StringPiece name) override; |
| 133 void RegisterRenderFrameMojoInterfaces( | 132 void RegisterRenderFrameMojoInterfaces( |
| 134 service_manager::InterfaceRegistry* registry, | 133 service_manager::InterfaceRegistry* registry, |
| 135 content::RenderFrameHost* render_frame_host) override; | 134 content::RenderFrameHost* render_frame_host) override; |
| 136 | 135 |
| 137 private: | 136 private: |
| 138 // Android WebView currently has a single global (non-off-the-record) browser | 137 // Android WebView currently has a single global (non-off-the-record) browser |
| 139 // context. | 138 // context. |
| 140 std::unique_ptr<AwBrowserContext> browser_context_; | 139 std::unique_ptr<AwBrowserContext> browser_context_; |
| 141 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; | 140 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; |
| 142 | 141 |
| 143 JniDependencyFactory* native_factory_; | 142 JniDependencyFactory* native_factory_; |
| 144 | 143 |
| 145 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 144 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| 146 }; | 145 }; |
| 147 | 146 |
| 148 } // namespace android_webview | 147 } // namespace android_webview |
| 149 | 148 |
| 150 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 149 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |