Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: chrome/utility/extensions/extensions_handler.h

Issue 2697463002: Convert utility process extension Unpacker IPC to mojo (Closed)
Patch Set: Add it again (from a different machine). Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 namespace extensions { 27 namespace extensions {
28 28
29 // Dispatches IPCs for Chrome extensions utility messages. 29 // Dispatches IPCs for Chrome extensions utility messages.
30 class ExtensionsHandler : public UtilityMessageHandler { 30 class ExtensionsHandler : public UtilityMessageHandler {
31 public: 31 public:
32 ExtensionsHandler(); 32 ExtensionsHandler();
33 ~ExtensionsHandler() override; 33 ~ExtensionsHandler() override;
34 34
35 static void PreSandboxStartup(); 35 static void PreSandboxStartup();
36 36
37 static void UtilityThreadStarted();
38
37 // TODO(noel): consider moving this API to the UtilityMessageHandler 39 // TODO(noel): consider moving this API to the UtilityMessageHandler
38 // interface. 40 // interface.
39 static void ExposeInterfacesToBrowser( 41 static void ExposeInterfacesToBrowser(
40 service_manager::InterfaceRegistry* registry, 42 service_manager::InterfaceRegistry* registry,
41 bool running_elevated); 43 bool running_elevated);
42 44
43 // UtilityMessageHandler: 45 // UtilityMessageHandler:
44 bool OnMessageReceived(const IPC::Message& message) override; 46 bool OnMessageReceived(const IPC::Message& message) override;
45 47
46 private: 48 private:
(...skipping 15 matching lines...) Expand all
62 #endif // defined(OS_WIN) || defined(OS_MACOSX) 64 #endif // defined(OS_WIN) || defined(OS_MACOSX)
63 65
64 UtilityHandler utility_handler_; 66 UtilityHandler utility_handler_;
65 67
66 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); 68 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler);
67 }; 69 };
68 70
69 } // namespace extensions 71 } // namespace extensions
70 72
71 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ 73 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698