Chromium Code Reviews| 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_UTILITY_UTILITY_HANDLER_H_ | 5 #ifndef EXTENSIONS_UTILITY_UTILITY_HANDLER_H_ |
| 6 #define EXTENSIONS_UTILITY_UTILITY_HANDLER_H_ | 6 #define EXTENSIONS_UTILITY_UTILITY_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 namespace IPC { | |
| 13 class Message; | |
| 14 } | |
| 15 | |
| 16 namespace service_manager { | 8 namespace service_manager { |
| 17 class InterfaceRegistry; | 9 class InterfaceRegistry; |
| 18 } | 10 } |
| 19 | 11 |
| 20 namespace extensions { | 12 namespace extensions { |
| 21 | 13 |
| 22 // A handler for extensions-related IPC from within utility processes. | 14 namespace utility_handler { |
|
Devlin
2017/03/21 23:51:17
nit: \n
Noel Gordon
2017/03/22 01:34:50
Done.
| |
| 23 class UtilityHandler { | 15 void UtilityThreadStarted(); |
| 24 public: | |
| 25 UtilityHandler(); | |
| 26 ~UtilityHandler(); | |
| 27 | 16 |
| 28 static void UtilityThreadStarted(); | 17 void ExposeInterfacesToBrowser(service_manager::InterfaceRegistry* registry, |
| 29 | 18 bool running_elevated); |
|
Devlin
2017/03/21 23:51:17
nit: \n
Noel Gordon
2017/03/22 01:34:50
Done.
| |
| 30 static void ExposeInterfacesToBrowser( | 19 } // namespace utility_handler |
| 31 service_manager::InterfaceRegistry* registry, | |
| 32 bool running_elevated); | |
| 33 | |
| 34 bool OnMessageReceived(const IPC::Message& message); | |
| 35 | |
| 36 private: | |
| 37 // IPC message handlers. | |
| 38 void OnParseUpdateManifest(const std::string& xml); | |
| 39 | |
| 40 DISALLOW_COPY_AND_ASSIGN(UtilityHandler); | |
| 41 }; | |
| 42 | 20 |
| 43 } // namespace extensions | 21 } // namespace extensions |
| 44 | 22 |
| 45 #endif // EXTENSIONS_UTILITY_UTILITY_HANDLER_H_ | 23 #endif // EXTENSIONS_UTILITY_UTILITY_HANDLER_H_ |
| OLD | NEW |