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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 // the given |browser_context| and |url|. If |params| is nullptr, this method | 580 // the given |browser_context| and |url|. If |params| is nullptr, this method |
581 // checks the basic "socket" permission, which is for those operations that | 581 // checks the basic "socket" permission, which is for those operations that |
582 // don't require a specific socket permission rule. | 582 // don't require a specific socket permission rule. |
583 // |private_api| indicates whether this permission check is for the private | 583 // |private_api| indicates whether this permission check is for the private |
584 // Pepper socket API or the public one. | 584 // Pepper socket API or the public one. |
585 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 585 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
586 const GURL& url, | 586 const GURL& url, |
587 bool private_api, | 587 bool private_api, |
588 const SocketPermissionRequest* params); | 588 const SocketPermissionRequest* params); |
589 | 589 |
| 590 // Returns true if the "vpnProvider" permission is allowed from the given |
| 591 // |browser_context| and |url|. |
| 592 virtual bool IsPepperVpnProviderAPIAllowed(BrowserContext* browser_context, |
| 593 const GURL& url); |
| 594 |
590 // Returns an implementation of a file selecition policy. Can return nullptr. | 595 // Returns an implementation of a file selecition policy. Can return nullptr. |
591 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 596 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
592 WebContents* web_contents); | 597 WebContents* web_contents); |
593 | 598 |
594 // Returns additional allowed scheme set which can access files in | 599 // Returns additional allowed scheme set which can access files in |
595 // FileSystem API. | 600 // FileSystem API. |
596 virtual void GetAdditionalAllowedSchemesForFileSystem( | 601 virtual void GetAdditionalAllowedSchemesForFileSystem( |
597 std::vector<std::string>* additional_schemes) {} | 602 std::vector<std::string>* additional_schemes) {} |
598 | 603 |
599 // Returns auto mount handlers for URL requests for FileSystem APIs. | 604 // Returns auto mount handlers for URL requests for FileSystem APIs. |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
773 // implementation. Return nullptr to disable external surface video. | 778 // implementation. Return nullptr to disable external surface video. |
774 virtual ExternalVideoSurfaceContainer* | 779 virtual ExternalVideoSurfaceContainer* |
775 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
776 #endif | 781 #endif |
777 }; | 782 }; |
778 | 783 |
779 } // namespace content | 784 } // namespace content |
780 | 785 |
781 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |