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/macros.h" | 10 #include "base/macros.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 ~ExtensionsHandler() override; | 29 ~ExtensionsHandler() override; |
30 | 30 |
31 static void PreSandboxStartup(); | 31 static void PreSandboxStartup(); |
32 | 32 |
33 // UtilityMessageHandler: | 33 // UtilityMessageHandler: |
34 bool OnMessageReceived(const IPC::Message& message) override; | 34 bool OnMessageReceived(const IPC::Message& message) override; |
35 | 35 |
36 private: | 36 private: |
37 // IPC message handlers. | 37 // IPC message handlers. |
38 void OnUnzipToDir(const base::FilePath& zip_path, const base::FilePath& dir); | 38 void OnUnzipToDir(const base::FilePath& zip_path, const base::FilePath& dir); |
39 void OnDecodeImageBase64(const std::string& encoded_data); | |
40 void OnCheckMediaFile(int64 milliseconds_of_decoding, | 39 void OnCheckMediaFile(int64 milliseconds_of_decoding, |
41 const IPC::PlatformFileForTransit& media_file); | 40 const IPC::PlatformFileForTransit& media_file); |
42 | 41 |
43 #if defined(OS_WIN) | 42 #if defined(OS_WIN) |
44 void OnParseITunesPrefXml(const std::string& itunes_xml_data); | 43 void OnParseITunesPrefXml(const std::string& itunes_xml_data); |
45 #endif // defined(OS_WIN) | 44 #endif // defined(OS_WIN) |
46 | 45 |
47 #if defined(OS_MACOSX) | 46 #if defined(OS_MACOSX) |
48 void OnParseIPhotoLibraryXmlFile( | 47 void OnParseIPhotoLibraryXmlFile( |
49 const IPC::PlatformFileForTransit& iphoto_library_file); | 48 const IPC::PlatformFileForTransit& iphoto_library_file); |
(...skipping 16 matching lines...) Expand all Loading... |
66 #endif // defined(OS_WIN) | 65 #endif // defined(OS_WIN) |
67 | 66 |
68 UtilityHandler utility_handler_; | 67 UtilityHandler utility_handler_; |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); | 69 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); |
71 }; | 70 }; |
72 | 71 |
73 } // namespace extensions | 72 } // namespace extensions |
74 | 73 |
75 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ | 74 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ |
OLD | NEW |