Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / extensions / utility / utility_handler.h
blob0ae31ecf872867c3a8f2baae86a012bc9ac0ebbc
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_UTILITY_UTILITY_HANDLER_
6 #define EXTENSIONS_UTILITY_UTILITY_HANDLER_
8 #include <string>
10 #include "base/macros.h"
12 namespace IPC {
13 class Message;
16 namespace extensions {
18 // A handler for extensions-related IPC from within utility processes.
19 class UtilityHandler {
20 public:
21 UtilityHandler();
22 ~UtilityHandler();
24 static void UtilityThreadStarted();
26 bool OnMessageReceived(const IPC::Message& message);
28 private:
29 // IPC message handlers.
30 void OnParseUpdateManifest(const std::string& xml);
32 DISALLOW_COPY_AND_ASSIGN(UtilityHandler);
35 } // namespace extensions
37 #endif // EXTENSIONS_UTILITY_UTILITY_HANDLER_