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

Side by Side Diff: content/public/utility/content_utility_client.h

Issue 2837813004: Sync the browser test host resolver with the network process before a test runs. (Closed)
Patch Set: review comments Created 3 years, 7 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/test/test_host_resolver.cc ('k') | content/shell/BUILD.gn » ('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_UTILITY_CONTENT_UTILITY_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
6 #define CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ 6 #define CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "content/public/common/content_client.h" 12 #include "content/public/common/content_client.h"
13 #include "content/public/common/service_info.h" 13 #include "content/public/common/service_info.h"
14 14
15 namespace service_manager { 15 namespace service_manager {
16 class BinderRegistry;
16 class InterfaceRegistry; 17 class InterfaceRegistry;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 21
21 // Embedder API for participating in renderer logic. 22 // Embedder API for participating in renderer logic.
22 class CONTENT_EXPORT ContentUtilityClient { 23 class CONTENT_EXPORT ContentUtilityClient {
23 public: 24 public:
24 using StaticServiceMap = std::map<std::string, ServiceInfo>; 25 using StaticServiceMap = std::map<std::string, ServiceInfo>;
25 26
26 virtual ~ContentUtilityClient() {} 27 virtual ~ContentUtilityClient() {}
27 28
28 // Notifies us that the UtilityThread has been created. 29 // Notifies us that the UtilityThread has been created.
29 virtual void UtilityThreadStarted() {} 30 virtual void UtilityThreadStarted() {}
30 31
31 // Allows the embedder to filter messages. 32 // Allows the embedder to filter messages.
32 virtual bool OnMessageReceived(const IPC::Message& message); 33 virtual bool OnMessageReceived(const IPC::Message& message);
33 34
34 // Allows the client to expose interfaces from this utility process to the 35 // Allows the client to expose interfaces from this utility process to the
35 // browser process via |registry|. 36 // browser process via |registry|.
36 virtual void ExposeInterfacesToBrowser( 37 virtual void ExposeInterfacesToBrowser(
37 service_manager::InterfaceRegistry* registry) {} 38 service_manager::InterfaceRegistry* registry) {}
38 39
39 virtual void RegisterServices(StaticServiceMap* services) {} 40 virtual void RegisterServices(StaticServiceMap* services) {}
41
42 virtual void RegisterNetworkBinders(
43 service_manager::BinderRegistry* registry) {}
40 }; 44 };
41 45
42 } // namespace content 46 } // namespace content
43 47
44 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ 48 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/test/test_host_resolver.cc ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698