| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 WebContents* web_contents, | 442 WebContents* web_contents, |
| 443 const GURL& frame_url, | 443 const GURL& frame_url, |
| 444 const GURL& main_frame_url) {} | 444 const GURL& main_frame_url) {} |
| 445 | 445 |
| 446 virtual PermissionStatus GetPermissionStatus( | 446 virtual PermissionStatus GetPermissionStatus( |
| 447 PermissionType permission, | 447 PermissionType permission, |
| 448 BrowserContext* browser_context, | 448 BrowserContext* browser_context, |
| 449 const GURL& requesting_origin, | 449 const GURL& requesting_origin, |
| 450 const GURL& embedding_origin); | 450 const GURL& embedding_origin); |
| 451 | 451 |
| 452 virtual void ResetPermission(PermissionType permission, |
| 453 BrowserContext* browser_context, |
| 454 const GURL& requesting_origin, |
| 455 const GURL& embedding_origin) {} |
| 456 |
| 452 // Returns true if the given page is allowed to open a window of the given | 457 // Returns true if the given page is allowed to open a window of the given |
| 453 // type. If true is returned, |no_javascript_access| will indicate whether | 458 // type. If true is returned, |no_javascript_access| will indicate whether |
| 454 // the window that is created should be scriptable/in the same process. | 459 // the window that is created should be scriptable/in the same process. |
| 455 // This is called on the IO thread. | 460 // This is called on the IO thread. |
| 456 virtual bool CanCreateWindow(const GURL& opener_url, | 461 virtual bool CanCreateWindow(const GURL& opener_url, |
| 457 const GURL& opener_top_level_frame_url, | 462 const GURL& opener_top_level_frame_url, |
| 458 const GURL& source_origin, | 463 const GURL& source_origin, |
| 459 WindowContainerType container_type, | 464 WindowContainerType container_type, |
| 460 const GURL& target_url, | 465 const GURL& target_url, |
| 461 const Referrer& referrer, | 466 const Referrer& referrer, |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 637 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 633 // implementation. Return nullptr to disable external surface video. | 638 // implementation. Return nullptr to disable external surface video. |
| 634 virtual ExternalVideoSurfaceContainer* | 639 virtual ExternalVideoSurfaceContainer* |
| 635 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 640 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 636 #endif | 641 #endif |
| 637 }; | 642 }; |
| 638 | 643 |
| 639 } // namespace content | 644 } // namespace content |
| 640 | 645 |
| 641 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 646 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |