OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | |
8 | 7 |
9 #include "content/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
10 | 9 |
11 namespace content { | 10 namespace content { |
12 | 11 |
13 // Embedder API for participating in renderer logic. | 12 // Embedder API for participating in renderer logic. |
14 class CONTENT_EXPORT ContentUtilityClient { | 13 class CONTENT_EXPORT ContentUtilityClient { |
15 public: | 14 public: |
16 // Notifies us that the UtilityThread has been created. | 15 // Notifies us that the UtilityThread has been created. |
17 virtual void UtilityThreadStarted() {} | 16 virtual void UtilityThreadStarted() {} |
18 | 17 |
19 // Allows the embedder to filter messages. | 18 // Allows the embedder to filter messages. |
20 virtual bool OnMessageReceived(const IPC::Message& message); | 19 virtual bool OnMessageReceived(const IPC::Message& message); |
21 }; | 20 }; |
22 | 21 |
23 } // namespace content | 22 } // namespace content |
24 | 23 |
25 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ | 24 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |