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 "base/base64.h" | 8 #include "base/base64.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 static void UtilityThreadStarted(); | 32 static void UtilityThreadStarted(); |
33 | 33 |
34 // IPC::Listener: | 34 // IPC::Listener: |
35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 // IPC message handlers. | 38 // IPC message handlers. |
39 void OnUnpackExtension(const base::FilePath& extension_path, | 39 void OnUnpackExtension(const base::FilePath& extension_path, |
40 const std::string& extension_id, | 40 const std::string& extension_id, |
41 int location, int creation_flags); | 41 int location, int creation_flags); |
| 42 void OnUnzipToDir(const base::FilePath& zip_path, const base::FilePath& dir); |
42 void OnParseUpdateManifest(const std::string& xml); | 43 void OnParseUpdateManifest(const std::string& xml); |
43 void OnDecodeImageBase64(const std::string& encoded_data); | 44 void OnDecodeImageBase64(const std::string& encoded_data); |
44 void OnParseJSON(const std::string& json); | 45 void OnParseJSON(const std::string& json); |
45 void OnCheckMediaFile(int64 milliseconds_of_decoding, | 46 void OnCheckMediaFile(int64 milliseconds_of_decoding, |
46 const IPC::PlatformFileForTransit& media_file); | 47 const IPC::PlatformFileForTransit& media_file); |
47 | 48 |
48 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
49 void OnParseITunesPrefXml(const std::string& itunes_xml_data); | 50 void OnParseITunesPrefXml(const std::string& itunes_xml_data); |
50 #endif // defined(OS_WIN) | 51 #endif // defined(OS_WIN) |
51 | 52 |
(...skipping 18 matching lines...) Expand all Loading... |
70 void OnGetAndEncryptWiFiCredentials(const std::string& network_guid, | 71 void OnGetAndEncryptWiFiCredentials(const std::string& network_guid, |
71 const std::vector<uint8>& public_key); | 72 const std::vector<uint8>& public_key); |
72 #endif // defined(OS_WIN) | 73 #endif // defined(OS_WIN) |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); | 75 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace extensions | 78 } // namespace extensions |
78 | 79 |
79 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ | 80 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ |
OLD | NEW |