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 | |
605 // Returns auto mount handlers for URL requests for FileSystem APIs. | 599 // Returns auto mount handlers for URL requests for FileSystem APIs. |
606 virtual void GetURLRequestAutoMountHandlers( | 600 virtual void GetURLRequestAutoMountHandlers( |
607 std::vector<storage::URLRequestAutoMountHandler>* handlers) {} | 601 std::vector<storage::URLRequestAutoMountHandler>* handlers) {} |
608 | 602 |
609 // Returns additional file system backends for FileSystem API. | 603 // Returns additional file system backends for FileSystem API. |
610 // |browser_context| is needed in the additional FileSystemBackends. | 604 // |browser_context| is needed in the additional FileSystemBackends. |
611 // It has mount points to create objects returned by additional | 605 // It has mount points to create objects returned by additional |
612 // FileSystemBackends, and SpecialStoragePolicy for permission granting. | 606 // FileSystemBackends, and SpecialStoragePolicy for permission granting. |
613 virtual void GetAdditionalFileSystemBackends( | 607 virtual void GetAdditionalFileSystemBackends( |
614 BrowserContext* browser_context, | 608 BrowserContext* browser_context, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 772 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
779 // implementation. Return nullptr to disable external surface video. | 773 // implementation. Return nullptr to disable external surface video. |
780 virtual ExternalVideoSurfaceContainer* | 774 virtual ExternalVideoSurfaceContainer* |
781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 775 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
782 #endif | 776 #endif |
783 }; | 777 }; |
784 | 778 |
785 } // namespace content | 779 } // namespace content |
786 | 780 |
787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 781 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |