| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 | 589 |
| 590 // Returns an implementation of a file selecition policy. Can return nullptr. | 590 // Returns an implementation of a file selecition policy. Can return nullptr. |
| 591 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 591 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
| 592 WebContents* web_contents); | 592 WebContents* web_contents); |
| 593 | 593 |
| 594 // Returns additional allowed scheme set which can access files in | 594 // Returns additional allowed scheme set which can access files in |
| 595 // FileSystem API. | 595 // FileSystem API. |
| 596 virtual void GetAdditionalAllowedSchemesForFileSystem( | 596 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 597 std::vector<std::string>* additional_schemes) {} | 597 std::vector<std::string>* additional_schemes) {} |
| 598 | 598 |
| 599 // |schemes| is a return value parameter that gets a whitelist of schemes that |
| 600 // should bypass the Is Privileged Context check. |
| 601 // See http://www.w3.org/TR/powerful-features/#settings-privileged |
| 602 virtual void GetSchemesBypassingSecureContextCheckWhitelist( |
| 603 std::set<std::string>* schemes) {} |
| 604 |
| 599 // Returns auto mount handlers for URL requests for FileSystem APIs. | 605 // Returns auto mount handlers for URL requests for FileSystem APIs. |
| 600 virtual void GetURLRequestAutoMountHandlers( | 606 virtual void GetURLRequestAutoMountHandlers( |
| 601 std::vector<storage::URLRequestAutoMountHandler>* handlers) {} | 607 std::vector<storage::URLRequestAutoMountHandler>* handlers) {} |
| 602 | 608 |
| 603 // Returns additional file system backends for FileSystem API. | 609 // Returns additional file system backends for FileSystem API. |
| 604 // |browser_context| is needed in the additional FileSystemBackends. | 610 // |browser_context| is needed in the additional FileSystemBackends. |
| 605 // It has mount points to create objects returned by additional | 611 // It has mount points to create objects returned by additional |
| 606 // FileSystemBackends, and SpecialStoragePolicy for permission granting. | 612 // FileSystemBackends, and SpecialStoragePolicy for permission granting. |
| 607 virtual void GetAdditionalFileSystemBackends( | 613 virtual void GetAdditionalFileSystemBackends( |
| 608 BrowserContext* browser_context, | 614 BrowserContext* browser_context, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 772 // implementation. Return nullptr to disable external surface video. | 778 // implementation. Return nullptr to disable external surface video. |
| 773 virtual ExternalVideoSurfaceContainer* | 779 virtual ExternalVideoSurfaceContainer* |
| 774 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 775 #endif | 781 #endif |
| 776 }; | 782 }; |
| 777 | 783 |
| 778 } // namespace content | 784 } // namespace content |
| 779 | 785 |
| 780 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |