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_
10 #include "base/callback.h"
11 #include "base/macros.h"
21 namespace extensions
{
23 // A handler for extensions-related IPC from within utility processes.
24 class UtilityHandler
{
29 static void UtilityThreadStarted();
31 bool OnMessageReceived(const IPC::Message
& message
);
34 // IPC message handlers.
35 void OnParseUpdateManifest(const std::string
& xml
);
36 void OnUnzipToDir(const base::FilePath
& zip_path
, const base::FilePath
& dir
);
37 void OnUnpackExtension(const base::FilePath
& extension_path
,
38 const std::string
& extension_id
,
39 int location
, int creation_flags
);
41 DISALLOW_COPY_AND_ASSIGN(UtilityHandler
);
44 } // namespace extensions
46 #endif // EXTENSIONS_UTILITY_UTILITY_HANDLER_