Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / extensions / utility / utility_handler.h
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.
4
5 #ifndef EXTENSIONS_UTILITY_UTILITY_HANDLER_
6 #define EXTENSIONS_UTILITY_UTILITY_HANDLER_
7
8 #include <string>
9
10 #include "base/macros.h"
11
12 namespace IPC {
13 class Message;
14 }
15
16 namespace extensions {
17
18 // A handler for extensions-related IPC from within utility processes.
19 class UtilityHandler {
20  public:
21   UtilityHandler();
22   ~UtilityHandler();
23
24   static void UtilityThreadStarted();
25
26   bool OnMessageReceived(const IPC::Message& message);
27
28  private:
29   // IPC message handlers.
30   void OnParseUpdateManifest(const std::string& xml);
31
32   DISALLOW_COPY_AND_ASSIGN(UtilityHandler);
33 };
34
35 }  // namespace extensions
36
37 #endif  // EXTENSIONS_UTILITY_UTILITY_HANDLER_