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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
467 | 467 |
468 // Request permission to access protected media identifier. |result_callback | 468 // Request permission to access protected media identifier. |result_callback |
469 // will tell whether it's permitted. If |cancel_callback| is non-null, it's | 469 // will tell whether it's permitted. If |cancel_callback| is non-null, it's |
470 // set to a callback which can be used to cancel the permission request. | 470 // set to a callback which can be used to cancel the permission request. |
471 virtual void RequestProtectedMediaIdentifierPermission( | 471 virtual void RequestProtectedMediaIdentifierPermission( |
472 WebContents* web_contents, | 472 WebContents* web_contents, |
473 const GURL& origin, | 473 const GURL& origin, |
474 base::Callback<void(bool)> result_callback, | 474 base::Callback<void(bool)> result_callback, |
475 base::Closure* cancel_callback); | 475 base::Closure* cancel_callback); |
476 | 476 |
477 // Informs the content settings host map that a permission has been used. | |
Bernhard Bauer
2014/07/14 10:50:33
Informs whom? Content settings host map (actually
Daniel Nishi
2014/07/14 17:12:54
Removed reference to chrome concept.
| |
478 virtual void UseContentSettingPermission(WebContents* web_contents, | |
Bernhard Bauer
2014/07/14 10:50:33
I would probably call this "DidUse..." or somethin
Daniel Nishi
2014/07/14 17:12:54
Done.
| |
479 const GURL& primary_url, | |
480 const GURL& secondary_url, | |
481 const std::string& setting_type); | |
Bernhard Bauer
2014/07/14 10:50:33
This is somewhat weird as a content embedder inter
Daniel Nishi
2014/07/14 17:12:54
I'm not sure if WebContentsObserver is the right l
| |
482 | |
477 // Returns true if the given page is allowed to open a window of the given | 483 // Returns true if the given page is allowed to open a window of the given |
478 // type. If true is returned, |no_javascript_access| will indicate whether | 484 // type. If true is returned, |no_javascript_access| will indicate whether |
479 // the window that is created should be scriptable/in the same process. | 485 // the window that is created should be scriptable/in the same process. |
480 // This is called on the IO thread. | 486 // This is called on the IO thread. |
481 virtual bool CanCreateWindow(const GURL& opener_url, | 487 virtual bool CanCreateWindow(const GURL& opener_url, |
482 const GURL& opener_top_level_frame_url, | 488 const GURL& opener_top_level_frame_url, |
483 const GURL& source_origin, | 489 const GURL& source_origin, |
484 WindowContainerType container_type, | 490 WindowContainerType container_type, |
485 const GURL& target_url, | 491 const GURL& target_url, |
486 const Referrer& referrer, | 492 const Referrer& referrer, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
648 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
649 // implementation. Return NULL to disable external surface video. | 655 // implementation. Return NULL to disable external surface video. |
650 virtual ExternalVideoSurfaceContainer* | 656 virtual ExternalVideoSurfaceContainer* |
651 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
652 #endif | 658 #endif |
653 }; | 659 }; |
654 | 660 |
655 } // namespace content | 661 } // namespace content |
656 | 662 |
657 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |