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