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

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

Issue 2635153002: Pref service: expose all read-only PrefStores through Mojo (Closed)
Patch Set: Create and register service Created 3 years, 10 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 virtual void ExposeInterfacesToGpuProcess( 678 virtual void ExposeInterfacesToGpuProcess(
679 service_manager::InterfaceRegistry* registry, 679 service_manager::InterfaceRegistry* registry,
680 GpuProcessHost* render_process_host) {} 680 GpuProcessHost* render_process_host) {}
681 681
682 using StaticServiceMap = std::map<std::string, ServiceInfo>; 682 using StaticServiceMap = std::map<std::string, ServiceInfo>;
683 683
684 // Registers services to be loaded in the browser process by the Service 684 // Registers services to be loaded in the browser process by the Service
685 // Manager. 685 // Manager.
686 virtual void RegisterInProcessServices(StaticServiceMap* services) {} 686 virtual void RegisterInProcessServices(StaticServiceMap* services) {}
687 687
688 // Registers per-browser context services to be loaded in the browser process
Sam McNally 2017/02/24 04:14:53 per-browser-context
tibell 2017/02/27 00:02:53 Done.
689 // by the Service Manager.
690 virtual void RegisterInProcessServices(BrowserContext* browser_context,
691 StaticServiceMap* services) {}
692
688 using OutOfProcessServiceMap = std::map<std::string, base::string16>; 693 using OutOfProcessServiceMap = std::map<std::string, base::string16>;
689 694
690 // Registers services to be loaded out of the browser process, in a sandboxed 695 // Registers services to be loaded out of the browser process, in a sandboxed
691 // utility process. The value of each map entry should be the process name to 696 // utility process. The value of each map entry should be the process name to
692 // use for the service's host process when launched. 697 // use for the service's host process when launched.
693 virtual void RegisterOutOfProcessServices(OutOfProcessServiceMap* services) {} 698 virtual void RegisterOutOfProcessServices(OutOfProcessServiceMap* services) {}
694 699
695 // Registers services to be loaded out of the browser process (in a utility 700 // Registers services to be loaded out of the browser process (in a utility
696 // process) without the sandbox. 701 // process) without the sandbox.
697 // 702 //
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 virtual bool ShouldRedirectDOMStorageTaskRunner(); 829 virtual bool ShouldRedirectDOMStorageTaskRunner();
825 830
826 // If this returns true, all BrowserThreads (but UI/IO) that support it on 831 // If this returns true, all BrowserThreads (but UI/IO) that support it on
827 // this platform will experimentally be redirected to TaskScheduler. 832 // this platform will experimentally be redirected to TaskScheduler.
828 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 833 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
829 }; 834 };
830 835
831 } // namespace content 836 } // namespace content
832 837
833 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 838 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698