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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
445 WebContents* web_contents, | 445 WebContents* web_contents, |
446 const GURL& frame_url, | 446 const GURL& frame_url, |
447 const GURL& main_frame_url) {} | 447 const GURL& main_frame_url) {} |
448 | 448 |
449 virtual PermissionStatus GetPermissionStatus( | 449 virtual PermissionStatus GetPermissionStatus( |
450 PermissionType permission, | 450 PermissionType permission, |
451 BrowserContext* browser_context, | 451 BrowserContext* browser_context, |
452 const GURL& requesting_origin, | 452 const GURL& requesting_origin, |
453 const GURL& embedding_origin); | 453 const GURL& embedding_origin); |
454 | 454 |
455 // Runs the given |callback| whenever the |permission| associated with the | |
456 // pair { requesting_origin, embedding_origin } changes. | |
457 // Returns the subscription_id to be used to unsubscribe. | |
458 virtual int SubscribePermissionStatusChange( | |
jochen (gone - plz use gerrit)
2015/03/11 16:11:24
why is this not on browser_context?
mlamouri (slow - plz ping)
2015/03/18 16:24:40
All the permission related method live here but I
| |
459 PermissionType permission, | |
460 BrowserContext* browser_context, | |
461 const GURL& requesting_origin, | |
462 const GURL& embedding_origin, | |
463 const base::Callback<void(PermissionStatus)>& callback); | |
464 | |
465 virtual void UnsubscribePermissionStatusChange( | |
466 BrowserContext* browser_context, | |
467 int subscription_id) {} | |
468 | |
455 virtual void ResetPermission(PermissionType permission, | 469 virtual void ResetPermission(PermissionType permission, |
456 BrowserContext* browser_context, | 470 BrowserContext* browser_context, |
457 const GURL& requesting_origin, | 471 const GURL& requesting_origin, |
458 const GURL& embedding_origin) {} | 472 const GURL& embedding_origin) {} |
459 | 473 |
460 // Returns true if the given page is allowed to open a window of the given | 474 // Returns true if the given page is allowed to open a window of the given |
461 // type. If true is returned, |no_javascript_access| will indicate whether | 475 // type. If true is returned, |no_javascript_access| will indicate whether |
462 // the window that is created should be scriptable/in the same process. | 476 // the window that is created should be scriptable/in the same process. |
463 // This is called on the IO thread. | 477 // This is called on the IO thread. |
464 virtual bool CanCreateWindow(const GURL& opener_url, | 478 virtual bool CanCreateWindow(const GURL& opener_url, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 667 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
654 // implementation. Return nullptr to disable external surface video. | 668 // implementation. Return nullptr to disable external surface video. |
655 virtual ExternalVideoSurfaceContainer* | 669 virtual ExternalVideoSurfaceContainer* |
656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 670 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
657 #endif | 671 #endif |
658 }; | 672 }; |
659 | 673 |
660 } // namespace content | 674 } // namespace content |
661 | 675 |
662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 676 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |