Chromium Code Reviews| 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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 338 const GURL& url, | 338 const GURL& url, |
| 339 const base::string16& name, | 339 const base::string16& name, |
| 340 const base::string16& display_name, | 340 const base::string16& display_name, |
| 341 unsigned long estimated_size, | 341 unsigned long estimated_size, |
| 342 ResourceContext* context, | 342 ResourceContext* context, |
| 343 const std::vector<std::pair<int, int> >& render_frames); | 343 const std::vector<std::pair<int, int> >& render_frames); |
| 344 | 344 |
| 345 // Allow the embedder to control if access to file system by a shared worker | 345 // Allow the embedder to control if access to file system by a shared worker |
| 346 // is allowed. | 346 // is allowed. |
| 347 // This is called on the IO thread. | 347 // This is called on the IO thread. |
| 348 virtual bool AllowWorkerFileSystem( | 348 virtual void RequestWorkerFileSystemAccessSync( |
|
Andrew T Wilson (Slow)
2014/06/20 22:04:27
Why is this called ...AccessSync() - I'm assuming
Xi Han
2014/06/23 02:51:13
Sorry for the confusion. But this is a sync call,
jam
2014/06/23 07:02:00
What does this line mean? If there's a delay reply
Xi Han
2014/06/23 20:43:34
I see. Thank you for the explanation. All of the "
| |
| 349 const GURL& url, | 349 const GURL& url, |
| 350 ResourceContext* context, | 350 ResourceContext* context, |
| 351 const std::vector<std::pair<int, int> >& render_frames); | 351 const std::vector<std::pair<int, int> >& render_frames, |
| 352 base::Callback<void(bool)> callback); | |
| 352 | 353 |
| 353 // Allow the embedder to control if access to IndexedDB by a shared worker | 354 // Allow the embedder to control if access to IndexedDB by a shared worker |
| 354 // is allowed. | 355 // is allowed. |
| 355 // This is called on the IO thread. | 356 // This is called on the IO thread. |
| 356 virtual bool AllowWorkerIndexedDB( | 357 virtual bool AllowWorkerIndexedDB( |
| 357 const GURL& url, | 358 const GURL& url, |
| 358 const base::string16& name, | 359 const base::string16& name, |
| 359 ResourceContext* context, | 360 ResourceContext* context, |
| 360 const std::vector<std::pair<int, int> >& render_frames); | 361 const std::vector<std::pair<int, int> >& render_frames); |
| 361 | 362 |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 675 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 676 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 676 // implementation. Return NULL to disable external surface video. | 677 // implementation. Return NULL to disable external surface video. |
| 677 virtual ExternalVideoSurfaceContainer* | 678 virtual ExternalVideoSurfaceContainer* |
| 678 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 679 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 679 #endif | 680 #endif |
| 680 }; | 681 }; |
| 681 | 682 |
| 682 } // namespace content | 683 } // namespace content |
| 683 | 684 |
| 684 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 685 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |