| 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 CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ | 5 #ifndef CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ |
| 6 #define CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ | 6 #define CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 namespace extensions { | 29 namespace extensions { |
| 30 | 30 |
| 31 // Dispatches IPCs for Chrome extensions utility messages. | 31 // Dispatches IPCs for Chrome extensions utility messages. |
| 32 class ExtensionsHandler : public UtilityMessageHandler { | 32 class ExtensionsHandler : public UtilityMessageHandler { |
| 33 public: | 33 public: |
| 34 ExtensionsHandler(); | 34 ExtensionsHandler(); |
| 35 ~ExtensionsHandler() override; | 35 ~ExtensionsHandler() override; |
| 36 | 36 |
| 37 static void PreSandboxStartup(); | 37 static void PreSandboxStartup(); |
| 38 | 38 |
| 39 static void UtilityThreadStarted(); |
| 40 |
| 39 // TODO(noel): consider moving this API to the UtilityMessageHandler | 41 // TODO(noel): consider moving this API to the UtilityMessageHandler |
| 40 // interface. | 42 // interface. |
| 41 static void ExposeInterfacesToBrowser( | 43 static void ExposeInterfacesToBrowser( |
| 42 service_manager::InterfaceRegistry* registry, | 44 service_manager::InterfaceRegistry* registry, |
| 43 ChromeContentUtilityClient* utility_client, | 45 ChromeContentUtilityClient* utility_client, |
| 44 bool running_elevated); | 46 bool running_elevated); |
| 45 | 47 |
| 46 // UtilityMessageHandler: | 48 // UtilityMessageHandler: |
| 47 bool OnMessageReceived(const IPC::Message& message) override; | 49 bool OnMessageReceived(const IPC::Message& message) override; |
| 48 | 50 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 65 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 67 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 66 | 68 |
| 67 UtilityHandler utility_handler_; | 69 UtilityHandler utility_handler_; |
| 68 | 70 |
| 69 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); | 71 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 } // namespace extensions | 74 } // namespace extensions |
| 73 | 75 |
| 74 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ | 76 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ |
| OLD | NEW |