| 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 "content/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class ApplicationRegistry; |
| 12 class ServiceRegistry; | 13 class ServiceRegistry; |
| 13 | 14 |
| 14 // Embedder API for participating in renderer logic. | 15 // Embedder API for participating in renderer logic. |
| 15 class CONTENT_EXPORT ContentUtilityClient { | 16 class CONTENT_EXPORT ContentUtilityClient { |
| 16 public: | 17 public: |
| 17 virtual ~ContentUtilityClient() {} | 18 virtual ~ContentUtilityClient() {} |
| 18 | 19 |
| 19 // Notifies us that the UtilityThread has been created. | 20 // Notifies us that the UtilityThread has been created. |
| 20 virtual void UtilityThreadStarted() {} | 21 virtual void UtilityThreadStarted() {} |
| 21 | 22 |
| 22 // Allows the embedder to filter messages. | 23 // Allows the embedder to filter messages. |
| 23 virtual bool OnMessageReceived(const IPC::Message& message); | 24 virtual bool OnMessageReceived(const IPC::Message& message); |
| 24 | 25 |
| 25 // Registers Mojo services. | 26 // Registers Mojo services. |
| 26 virtual void RegisterMojoServices(ServiceRegistry* registry) {} | 27 virtual void RegisterMojoServices(ServiceRegistry* registry) {} |
| 28 |
| 29 // Registers Mojo applications. |
| 30 virtual void RegisterMojoApplications(ApplicationRegistry* registry) {} |
| 27 }; | 31 }; |
| 28 | 32 |
| 29 } // namespace content | 33 } // namespace content |
| 30 | 34 |
| 31 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ | 35 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |