Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / utility / content_utility_client.h
blob8a333e7ed7dbdfdf468d1a1c87367db2a0830bd7
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
6 #define CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
8 #include "content/public/common/content_client.h"
10 namespace content {
12 class ServiceRegistry;
14 // Embedder API for participating in renderer logic.
15 class CONTENT_EXPORT ContentUtilityClient {
16 public:
17 virtual ~ContentUtilityClient() {}
19 // Notifies us that the UtilityThread has been created.
20 virtual void UtilityThreadStarted() {}
22 // Allows the embedder to filter messages.
23 virtual bool OnMessageReceived(const IPC::Message& message);
25 // Registers Mojo services.
26 virtual void RegisterMojoServices(ServiceRegistry* registry) {}
29 } // namespace content
31 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_