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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/gpu_service_registry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 namespace gpu { 59 namespace gpu {
60 class GpuChannelEstablishFactory; 60 class GpuChannelEstablishFactory;
61 } 61 }
62 62
63 namespace media { 63 namespace media {
64 class CdmFactory; 64 class CdmFactory;
65 } 65 }
66 66
67 namespace shell { 67 namespace service_manager {
68 class InterfaceRegistry; 68 class InterfaceRegistry;
69 class Service; 69 class Service;
70 } 70 }
71 71
72 namespace net { 72 namespace net {
73 class CookieOptions; 73 class CookieOptions;
74 class NetLog; 74 class NetLog;
75 class SSLCertRequestInfo; 75 class SSLCertRequestInfo;
76 class SSLInfo; 76 class SSLInfo;
77 class URLRequest; 77 class URLRequest;
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // Generate a Service user-id for the supplied browser context. Defaults to 642 // Generate a Service user-id for the supplied browser context. Defaults to
643 // returning a random GUID. 643 // returning a random GUID.
644 virtual std::string GetServiceUserIdForBrowserContext( 644 virtual std::string GetServiceUserIdForBrowserContext(
645 BrowserContext* browser_context); 645 BrowserContext* browser_context);
646 646
647 // Allows to register browser interfaces exposed through the 647 // Allows to register browser interfaces exposed through the
648 // RenderProcessHost. Note that interface factory callbacks added to 648 // RenderProcessHost. Note that interface factory callbacks added to
649 // |registry| will by default be run immediately on the IO thread, unless a 649 // |registry| will by default be run immediately on the IO thread, unless a
650 // task runner is provided. 650 // task runner is provided.
651 virtual void ExposeInterfacesToRenderer( 651 virtual void ExposeInterfacesToRenderer(
652 shell::InterfaceRegistry* registry, 652 service_manager::InterfaceRegistry* registry,
653 RenderProcessHost* render_process_host) {} 653 RenderProcessHost* render_process_host) {}
654 654
655 // Called when RenderFrameHostImpl connects to the Media service. Expose 655 // Called when RenderFrameHostImpl connects to the Media service. Expose
656 // interfaces to the service using |registry|. 656 // interfaces to the service using |registry|.
657 virtual void ExposeInterfacesToMediaService( 657 virtual void ExposeInterfacesToMediaService(
658 shell::InterfaceRegistry* registry, 658 service_manager::InterfaceRegistry* registry,
659 RenderFrameHost* render_frame_host) {} 659 RenderFrameHost* render_frame_host) {}
660 660
661 // Allows to register browser Mojo interfaces exposed through the 661 // Allows to register browser Mojo interfaces exposed through the
662 // RenderFrameHost. 662 // RenderFrameHost.
663 virtual void RegisterRenderFrameMojoInterfaces( 663 virtual void RegisterRenderFrameMojoInterfaces(
664 shell::InterfaceRegistry* registry, 664 service_manager::InterfaceRegistry* registry,
665 RenderFrameHost* render_frame_host) {} 665 RenderFrameHost* render_frame_host) {}
666 666
667 // Allows to register browser Mojo interfaces exposed through the 667 // Allows to register browser Mojo interfaces exposed through the
668 // GpuProcessHost. Called on the IO thread. Note that interface factory 668 // GpuProcessHost. Called on the IO thread. Note that interface factory
669 // callbacks added to |registry| will by default be run immediately on the IO 669 // callbacks added to |registry| will by default be run immediately on the IO
670 // thread, unless a task runner is provided. 670 // thread, unless a task runner is provided.
671 virtual void ExposeInterfacesToGpuProcess( 671 virtual void ExposeInterfacesToGpuProcess(
672 shell::InterfaceRegistry* registry, 672 service_manager::InterfaceRegistry* registry,
673 GpuProcessHost* render_process_host) {} 673 GpuProcessHost* render_process_host) {}
674 674
675 using StaticServiceMap = std::map<std::string, ServiceInfo>; 675 using StaticServiceMap = std::map<std::string, ServiceInfo>;
676 676
677 // Registers services to be loaded in the browser process by the Service 677 // Registers services to be loaded in the browser process by the Service
678 // Manager. 678 // Manager.
679 virtual void RegisterInProcessServices(StaticServiceMap* services) {} 679 virtual void RegisterInProcessServices(StaticServiceMap* services) {}
680 680
681 using OutOfProcessServiceMap = std::map<std::string, base::string16>; 681 using OutOfProcessServiceMap = std::map<std::string, base::string16>;
682 682
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 #endif 778 #endif
779 779
780 // Returns an instance of MemoryCoordinatorDelegate. 780 // Returns an instance of MemoryCoordinatorDelegate.
781 virtual std::unique_ptr<MemoryCoordinatorDelegate> 781 virtual std::unique_ptr<MemoryCoordinatorDelegate>
782 GetMemoryCoordinatorDelegate(); 782 GetMemoryCoordinatorDelegate();
783 }; 783 };
784 784
785 } // namespace content 785 } // namespace content
786 786
787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/gpu_service_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698