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