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