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

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

Issue 2537513006: content: Cleanup class/struct forward declarations (Closed)
Patch Set: 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_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 InterfaceRegistry; 16 class InterfaceRegistry;
17 class Service;
18 } 17 }
19 18
20 namespace content { 19 namespace content {
21 20
22 // Embedder API for participating in renderer logic. 21 // Embedder API for participating in renderer logic.
23 class CONTENT_EXPORT ContentUtilityClient { 22 class CONTENT_EXPORT ContentUtilityClient {
24 public: 23 public:
25 using StaticServiceMap = std::map<std::string, ServiceInfo>; 24 using StaticServiceMap = std::map<std::string, ServiceInfo>;
26 25
27 virtual ~ContentUtilityClient() {} 26 virtual ~ContentUtilityClient() {}
28 27
29 // Notifies us that the UtilityThread has been created. 28 // Notifies us that the UtilityThread has been created.
30 virtual void UtilityThreadStarted() {} 29 virtual void UtilityThreadStarted() {}
31 30
32 // Allows the embedder to filter messages. 31 // Allows the embedder to filter messages.
33 virtual bool OnMessageReceived(const IPC::Message& message); 32 virtual bool OnMessageReceived(const IPC::Message& message);
34 33
35 // Allows the client to expose interfaces from this utility process to the 34 // Allows the client to expose interfaces from this utility process to the
36 // browser process via |registry|. 35 // browser process via |registry|.
37 virtual void ExposeInterfacesToBrowser( 36 virtual void ExposeInterfacesToBrowser(
38 service_manager::InterfaceRegistry* registry) {} 37 service_manager::InterfaceRegistry* registry) {}
39 38
40 virtual void RegisterServices(StaticServiceMap* services) {} 39 virtual void RegisterServices(StaticServiceMap* services) {}
41 }; 40 };
42 41
43 } // namespace content 42 } // namespace content
44 43
45 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ 44 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/test/web_contents_tester.h ('k') | content/renderer/child_frame_compositing_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698