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 #include "android_webview/browser/aw_content_browser_client.h" | 5 #include "android_webview/browser/aw_content_browser_client.h" |
6 | 6 |
7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
8 #include "android_webview/browser/aw_browser_main_parts.h" | 8 #include "android_webview/browser/aw_browser_main_parts.h" |
9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" | 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" |
10 #include "android_webview/browser/aw_contents_client_bridge_base.h" | 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 const GURL& url, | 313 const GURL& url, |
314 const base::string16& name, | 314 const base::string16& name, |
315 const base::string16& display_name, | 315 const base::string16& display_name, |
316 unsigned long estimated_size, | 316 unsigned long estimated_size, |
317 content::ResourceContext* context, | 317 content::ResourceContext* context, |
318 const std::vector<std::pair<int, int> >& render_frames) { | 318 const std::vector<std::pair<int, int> >& render_frames) { |
319 // Android WebView does not yet support web workers. | 319 // Android WebView does not yet support web workers. |
320 return false; | 320 return false; |
321 } | 321 } |
322 | 322 |
323 bool AwContentBrowserClient::AllowWorkerFileSystem( | 323 void AwContentBrowserClient::RequestWorkerFileSystemAccessSync( |
324 const GURL& url, | 324 const GURL& url, |
325 content::ResourceContext* context, | 325 content::ResourceContext* context, |
326 const std::vector<std::pair<int, int> >& render_frames) { | 326 const std::vector<std::pair<int, int> >& render_frames, |
| 327 base::Callback<void(bool)> callback) { |
327 // Android WebView does not yet support web workers. | 328 // Android WebView does not yet support web workers. |
328 return false; | 329 callback.Run(false); |
329 } | 330 } |
330 | 331 |
331 bool AwContentBrowserClient::AllowWorkerIndexedDB( | 332 bool AwContentBrowserClient::AllowWorkerIndexedDB( |
332 const GURL& url, | 333 const GURL& url, |
333 const base::string16& name, | 334 const base::string16& name, |
334 content::ResourceContext* context, | 335 content::ResourceContext* context, |
335 const std::vector<std::pair<int, int> >& render_frames) { | 336 const std::vector<std::pair<int, int> >& render_frames) { |
336 // Android WebView does not yet support web workers. | 337 // Android WebView does not yet support web workers. |
337 return false; | 338 return false; |
338 } | 339 } |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 | 567 |
567 #if defined(VIDEO_HOLE) | 568 #if defined(VIDEO_HOLE) |
568 content::ExternalVideoSurfaceContainer* | 569 content::ExternalVideoSurfaceContainer* |
569 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 570 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
570 content::WebContents* web_contents) { | 571 content::WebContents* web_contents) { |
571 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 572 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
572 } | 573 } |
573 #endif | 574 #endif |
574 | 575 |
575 } // namespace android_webview | 576 } // namespace android_webview |
OLD | NEW |