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

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

Issue 2501913002: Change the NaCl loader and broker processes to use the ServiceManager. (Closed)
Patch Set: rebase Created 4 years 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 // process to provide it. Only use this method when that approach does not 702 // process to provide it. Only use this method when that approach does not
703 // work. 703 // work.
704 virtual void RegisterUnsandboxedOutOfProcessServices( 704 virtual void RegisterUnsandboxedOutOfProcessServices(
705 OutOfProcessServiceMap* services) {} 705 OutOfProcessServiceMap* services) {}
706 706
707 // Allow the embedder to provide a dictionary loaded from a JSON file 707 // Allow the embedder to provide a dictionary loaded from a JSON file
708 // resembling a service manifest whose capabilities section will be merged 708 // resembling a service manifest whose capabilities section will be merged
709 // with content's own for |name|. Additional entries will be appended to their 709 // with content's own for |name|. Additional entries will be appended to their
710 // respective sections. 710 // respective sections.
711 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay( 711 virtual std::unique_ptr<base::Value> GetServiceManifestOverlay(
712 const std::string& name); 712 base::StringPiece name);
713
714 struct ServiceManifestInfo {
715 // The name of the service.
716 std::string name;
717
718 // The resource ID of the manifest.
719 int resource_id;
720 };
721
722 // Allows the embedder to provide extra service manifests to be registered
723 // with the service manager context.
724 virtual std::vector<ServiceManifestInfo> GetExtraServiceManifests();
713 725
714 // Allows to override the visibility state of a RenderFrameHost. 726 // Allows to override the visibility state of a RenderFrameHost.
715 // |visibility_state| should not be null. It will only be set if needed. 727 // |visibility_state| should not be null. It will only be set if needed.
716 virtual void OverridePageVisibilityState( 728 virtual void OverridePageVisibilityState(
717 RenderFrameHost* render_frame_host, 729 RenderFrameHost* render_frame_host,
718 blink::WebPageVisibilityState* visibility_state) {} 730 blink::WebPageVisibilityState* visibility_state) {}
719 731
720 // Allows an embedder to provide its own PresentationServiceDelegate 732 // Allows an embedder to provide its own PresentationServiceDelegate
721 // implementation. Returns nullptr if unavailable. 733 // implementation. Returns nullptr if unavailable.
722 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( 734 virtual PresentationServiceDelegate* GetPresentationServiceDelegate(
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 virtual bool ShouldRedirectDOMStorageTaskRunner(); 825 virtual bool ShouldRedirectDOMStorageTaskRunner();
814 826
815 // If this returns true, all BrowserThreads (but UI/IO) that support it on 827 // If this returns true, all BrowserThreads (but UI/IO) that support it on
816 // this platform will experimentally be redirected to TaskScheduler. 828 // this platform will experimentally be redirected to TaskScheduler.
817 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 829 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
818 }; 830 };
819 831
820 } // namespace content 832 } // namespace content
821 833
822 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 834 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698