| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 void ClearCache(content::RenderFrameHost* rfh) override; | 113 void ClearCache(content::RenderFrameHost* rfh) override; |
| 114 void ClearCookies(content::RenderFrameHost* rfh) override; | 114 void ClearCookies(content::RenderFrameHost* rfh) override; |
| 115 base::FilePath GetDefaultDownloadDirectory() override; | 115 base::FilePath GetDefaultDownloadDirectory() override; |
| 116 std::string GetDefaultDownloadName() override; | 116 std::string GetDefaultDownloadName() override; |
| 117 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; | 117 void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; |
| 118 bool AllowPepperSocketAPI( | 118 bool AllowPepperSocketAPI( |
| 119 content::BrowserContext* browser_context, | 119 content::BrowserContext* browser_context, |
| 120 const GURL& url, | 120 const GURL& url, |
| 121 bool private_api, | 121 bool private_api, |
| 122 const content::SocketPermissionRequest* params) override; | 122 const content::SocketPermissionRequest* params) override; |
| 123 bool IsPepperVpnProviderAPIAllowed(content::BrowserContext* browser_context, |
| 124 const GURL& url) override; |
| 123 void GetAdditionalMappedFilesForChildProcess( | 125 void GetAdditionalMappedFilesForChildProcess( |
| 124 const base::CommandLine& command_line, | 126 const base::CommandLine& command_line, |
| 125 int child_process_id, | 127 int child_process_id, |
| 126 content::FileDescriptorInfo* mappings, | 128 content::FileDescriptorInfo* mappings, |
| 127 std::map<int, base::MemoryMappedFile::Region>* regions) override; | 129 std::map<int, base::MemoryMappedFile::Region>* regions) override; |
| 128 void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 130 void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
| 129 content::WebPreferences* web_prefs) override; | 131 content::WebPreferences* web_prefs) override; |
| 130 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( | 132 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( |
| 131 content::NavigationHandle* navigation_handle) override; | 133 content::NavigationHandle* navigation_handle) override; |
| 132 #if defined(VIDEO_HOLE) | 134 #if defined(VIDEO_HOLE) |
| 133 content::ExternalVideoSurfaceContainer* | 135 content::ExternalVideoSurfaceContainer* |
| 134 OverrideCreateExternalVideoSurfaceContainer( | 136 OverrideCreateExternalVideoSurfaceContainer( |
| 135 content::WebContents* web_contents) override; | 137 content::WebContents* web_contents) override; |
| 136 #endif | 138 #endif |
| 137 | 139 |
| 138 private: | 140 private: |
| 139 // Android WebView currently has a single global (non-off-the-record) browser | 141 // Android WebView currently has a single global (non-off-the-record) browser |
| 140 // context. | 142 // context. |
| 141 std::unique_ptr<AwBrowserContext> browser_context_; | 143 std::unique_ptr<AwBrowserContext> browser_context_; |
| 142 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; | 144 std::unique_ptr<AwWebPreferencesPopulater> preferences_populater_; |
| 143 | 145 |
| 144 JniDependencyFactory* native_factory_; | 146 JniDependencyFactory* native_factory_; |
| 145 | 147 |
| 146 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 148 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace android_webview | 151 } // namespace android_webview |
| 150 | 152 |
| 151 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 153 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |