| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| 6 #define EXTENSIONS_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| 7 | 7 |
| 8 #include "content/public/utility/content_utility_client.h" | 8 #include "content/public/utility/content_utility_client.h" |
| 9 #include "extensions/utility/utility_handler.h" | 9 #include "extensions/utility/utility_handler.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 class ShellContentUtilityClient : public content::ContentUtilityClient { | 13 class ShellContentUtilityClient : public content::ContentUtilityClient { |
| 14 public: | 14 public: |
| 15 ShellContentUtilityClient(); | 15 ShellContentUtilityClient(); |
| 16 ~ShellContentUtilityClient() override; | 16 ~ShellContentUtilityClient() override; |
| 17 | 17 |
| 18 // content::ContentUtilityClient: | 18 // content::ContentUtilityClient: |
| 19 void UtilityThreadStarted() override; | 19 void UtilityThreadStarted() override; |
| 20 bool OnMessageReceived(const IPC::Message& message) override; | |
| 21 | |
| 22 private: | |
| 23 UtilityHandler utility_handler_; | |
| 24 }; | 20 }; |
| 25 | 21 |
| 26 } // namespace extensions | 22 } // namespace extensions |
| 27 | 23 |
| 28 #endif // EXTENSIONS_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 24 #endif // EXTENSIONS_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |