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