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" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 const GURL& url, | 135 const GURL& url, |
136 bool private_api, | 136 bool private_api, |
137 const content::SocketPermissionRequest* params) override; | 137 const content::SocketPermissionRequest* params) override; |
138 void GetAdditionalMappedFilesForChildProcess( | 138 void GetAdditionalMappedFilesForChildProcess( |
139 const base::CommandLine& command_line, | 139 const base::CommandLine& command_line, |
140 int child_process_id, | 140 int child_process_id, |
141 content::FileDescriptorInfo* mappings, | 141 content::FileDescriptorInfo* mappings, |
142 std::map<int, base::MemoryMappedFile::Region>* regions) override; | 142 std::map<int, base::MemoryMappedFile::Region>* regions) override; |
143 void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 143 void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
144 content::WebPreferences* web_prefs) override; | 144 content::WebPreferences* web_prefs) override; |
| 145 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( |
| 146 content::NavigationHandle* navigation_handle) override; |
145 #if defined(VIDEO_HOLE) | 147 #if defined(VIDEO_HOLE) |
146 content::ExternalVideoSurfaceContainer* | 148 content::ExternalVideoSurfaceContainer* |
147 OverrideCreateExternalVideoSurfaceContainer( | 149 OverrideCreateExternalVideoSurfaceContainer( |
148 content::WebContents* web_contents) override; | 150 content::WebContents* web_contents) override; |
149 #endif | 151 #endif |
150 | 152 |
151 private: | 153 private: |
152 // Android WebView currently has a single global (non-off-the-record) browser | 154 // Android WebView currently has a single global (non-off-the-record) browser |
153 // context. | 155 // context. |
154 scoped_ptr<AwBrowserContext> browser_context_; | 156 scoped_ptr<AwBrowserContext> browser_context_; |
155 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; | 157 scoped_ptr<AwWebPreferencesPopulater> preferences_populater_; |
156 | 158 |
157 JniDependencyFactory* native_factory_; | 159 JniDependencyFactory* native_factory_; |
158 | 160 |
159 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 161 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
160 }; | 162 }; |
161 | 163 |
162 } // namespace android_webview | 164 } // namespace android_webview |
163 | 165 |
164 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 166 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |