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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 const GURL& url, | 324 const GURL& url, |
325 const base::string16& name, | 325 const base::string16& name, |
326 const base::string16& display_name, | 326 const base::string16& display_name, |
327 unsigned long estimated_size, | 327 unsigned long estimated_size, |
328 content::ResourceContext* context, | 328 content::ResourceContext* context, |
329 const std::vector<std::pair<int, int> >& render_frames) { | 329 const std::vector<std::pair<int, int> >& render_frames) { |
330 // Android WebView does not yet support web workers. | 330 // Android WebView does not yet support web workers. |
331 return false; | 331 return false; |
332 } | 332 } |
333 | 333 |
334 bool AwContentBrowserClient::AllowWorkerFileSystem( | 334 void AwContentBrowserClient::AllowWorkerFileSystem( |
335 const GURL& url, | 335 const GURL& url, |
336 content::ResourceContext* context, | 336 content::ResourceContext* context, |
337 const std::vector<std::pair<int, int> >& render_frames) { | 337 const std::vector<std::pair<int, int> >& render_frames, |
| 338 base::Callback<void(bool)> callback) { |
338 // Android WebView does not yet support web workers. | 339 // Android WebView does not yet support web workers. |
339 return false; | 340 callback.Run(false); |
340 } | 341 } |
341 | 342 |
342 bool AwContentBrowserClient::AllowWorkerIndexedDB( | 343 bool AwContentBrowserClient::AllowWorkerIndexedDB( |
343 const GURL& url, | 344 const GURL& url, |
344 const base::string16& name, | 345 const base::string16& name, |
345 content::ResourceContext* context, | 346 content::ResourceContext* context, |
346 const std::vector<std::pair<int, int> >& render_frames) { | 347 const std::vector<std::pair<int, int> >& render_frames) { |
347 // Android WebView does not yet support web workers. | 348 // Android WebView does not yet support web workers. |
348 return false; | 349 return false; |
349 } | 350 } |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 | 586 |
586 #if defined(VIDEO_HOLE) | 587 #if defined(VIDEO_HOLE) |
587 content::ExternalVideoSurfaceContainer* | 588 content::ExternalVideoSurfaceContainer* |
588 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 589 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
589 content::WebContents* web_contents) { | 590 content::WebContents* web_contents) { |
590 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 591 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
591 } | 592 } |
592 #endif | 593 #endif |
593 | 594 |
594 } // namespace android_webview | 595 } // namespace android_webview |
OLD | NEW |