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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
310 const GURL& url, | 310 const GURL& url, |
311 const base::string16& name, | 311 const base::string16& name, |
312 const base::string16& display_name, | 312 const base::string16& display_name, |
313 unsigned long estimated_size, | 313 unsigned long estimated_size, |
314 ResourceContext* context, | 314 ResourceContext* context, |
315 const std::vector<std::pair<int, int> >& render_frames); | 315 const std::vector<std::pair<int, int> >& render_frames); |
316 | 316 |
317 // Allow the embedder to control if access to file system by a shared worker | 317 // Allow the embedder to control if access to file system by a shared worker |
318 // is allowed. | 318 // is allowed. |
319 // This is called on the IO thread. | 319 // This is called on the IO thread. |
320 virtual bool AllowWorkerFileSystem( | 320 virtual void RequestWorkerFileSystemAccess( |
jabdelmalek
2014/06/24 21:23:32
nit: keep the old name. The "Allow" is used by con
Xi Han
2014/06/25 14:50:26
Done.
| |
321 const GURL& url, | 321 const GURL& url, |
322 ResourceContext* context, | 322 ResourceContext* context, |
323 const std::vector<std::pair<int, int> >& render_frames); | 323 const std::vector<std::pair<int, int> >& render_frames, |
324 base::Callback<void(bool)> callback); | |
324 | 325 |
325 // Allow the embedder to control if access to IndexedDB by a shared worker | 326 // Allow the embedder to control if access to IndexedDB by a shared worker |
326 // is allowed. | 327 // is allowed. |
327 // This is called on the IO thread. | 328 // This is called on the IO thread. |
328 virtual bool AllowWorkerIndexedDB( | 329 virtual bool AllowWorkerIndexedDB( |
329 const GURL& url, | 330 const GURL& url, |
330 const base::string16& name, | 331 const base::string16& name, |
331 ResourceContext* context, | 332 ResourceContext* context, |
332 const std::vector<std::pair<int, int> >& render_frames); | 333 const std::vector<std::pair<int, int> >& render_frames); |
333 | 334 |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
647 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 648 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
648 // implementation. Return NULL to disable external surface video. | 649 // implementation. Return NULL to disable external surface video. |
649 virtual ExternalVideoSurfaceContainer* | 650 virtual ExternalVideoSurfaceContainer* |
650 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 651 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
651 #endif | 652 #endif |
652 }; | 653 }; |
653 | 654 |
654 } // namespace content | 655 } // namespace content |
655 | 656 |
656 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 657 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |