OLD | NEW |
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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; | 27 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; |
28 | 28 |
29 virtual ~ContentUtilityClient() {} | 29 virtual ~ContentUtilityClient() {} |
30 | 30 |
31 // Notifies us that the UtilityThread has been created. | 31 // Notifies us that the UtilityThread has been created. |
32 virtual void UtilityThreadStarted() {} | 32 virtual void UtilityThreadStarted() {} |
33 | 33 |
34 // Allows the embedder to filter messages. | 34 // Allows the embedder to filter messages. |
35 virtual bool OnMessageReceived(const IPC::Message& message); | 35 virtual bool OnMessageReceived(const IPC::Message& message); |
36 | 36 |
37 // Registers Mojo interfaces. | 37 // Allows the client to expose interfaces from this utility process to the |
38 virtual void RegisterMojoInterfaces(shell::InterfaceRegistry* registry) {} | 38 // browser process via |registry|. |
| 39 virtual void ExposeInterfacesToBrowser(shell::InterfaceRegistry* registry) {} |
39 | 40 |
40 // Registers Mojo applications. | 41 // Registers Mojo applications. |
41 virtual void RegisterMojoApplications(StaticMojoApplicationMap* apps) {} | 42 virtual void RegisterMojoApplications(StaticMojoApplicationMap* apps) {} |
42 }; | 43 }; |
43 | 44 |
44 } // namespace content | 45 } // namespace content |
45 | 46 |
46 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ | 47 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |