Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2259903002: Enforce capability spec renderer <--> browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 using MojoApplicationManifestMap = std::map<std::string, std::string>; 710 using MojoApplicationManifestMap = std::map<std::string, std::string>;
711 711
712 // Registers manifest contents for Mojo applications. 712 // Registers manifest contents for Mojo applications.
713 // See "services/shell/manifest.json" for an example Mojo app manifest. 713 // See "services/shell/manifest.json" for an example Mojo app manifest.
714 // 714 //
715 // TODO(rockot): http://crbug.com/610426. Add more documentations about 715 // TODO(rockot): http://crbug.com/610426. Add more documentations about
716 // Mojo app manifest. 716 // Mojo app manifest.
717 virtual void RegisterMojoApplicationManifests( 717 virtual void RegisterMojoApplicationManifests(
718 MojoApplicationManifestMap* manifests) {} 718 MojoApplicationManifestMap* manifests) {}
719 719
720 // Allow the embedder to provide a dictionary loaded from a JSON file
721 // resembling a service manifest whose capabilities section will be merged
722 // with content's own for |name|. Additional entries will be appended to their
723 // respective sections.
724 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay(
725 const std::string& name);
726
720 // Allows to override the visibility state of a RenderFrameHost. 727 // Allows to override the visibility state of a RenderFrameHost.
721 // |visibility_state| should not be null. It will only be set if needed. 728 // |visibility_state| should not be null. It will only be set if needed.
722 virtual void OverridePageVisibilityState( 729 virtual void OverridePageVisibilityState(
723 RenderFrameHost* render_frame_host, 730 RenderFrameHost* render_frame_host,
724 blink::WebPageVisibilityState* visibility_state) {} 731 blink::WebPageVisibilityState* visibility_state) {}
725 732
726 // Allows an embedder to provide its own PresentationServiceDelegate 733 // Allows an embedder to provide its own PresentationServiceDelegate
727 // implementation. Returns nullptr if unavailable. 734 // implementation. Returns nullptr if unavailable.
728 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( 735 virtual PresentationServiceDelegate* GetPresentationServiceDelegate(
729 WebContents* web_contents); 736 WebContents* web_contents);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 802 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
796 // implementation. Return nullptr to disable external surface video. 803 // implementation. Return nullptr to disable external surface video.
797 virtual ExternalVideoSurfaceContainer* 804 virtual ExternalVideoSurfaceContainer*
798 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 805 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
799 #endif 806 #endif
800 }; 807 };
801 808
802 } // namespace content 809 } // namespace content
803 810
804 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 811 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698