| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 static void ExposeInterfacesToBrowser( | 41 static void ExposeInterfacesToBrowser( |
| 42 service_manager::InterfaceRegistry* registry, | 42 service_manager::InterfaceRegistry* registry, |
| 43 ChromeContentUtilityClient* utility_client, | 43 ChromeContentUtilityClient* utility_client, |
| 44 bool running_elevated); | 44 bool running_elevated); |
| 45 | 45 |
| 46 // UtilityMessageHandler: | 46 // UtilityMessageHandler: |
| 47 bool OnMessageReceived(const IPC::Message& message) override; | 47 bool OnMessageReceived(const IPC::Message& message) override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 // IPC message handlers. | 50 // IPC message handlers. |
| 51 void OnCheckMediaFile(int64_t milliseconds_of_decoding, | |
| 52 const IPC::PlatformFileForTransit& media_file); | |
| 53 | |
| 54 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
| 55 void OnParseITunesPrefXml(const std::string& itunes_xml_data); | 52 void OnParseITunesPrefXml(const std::string& itunes_xml_data); |
| 56 #endif // defined(OS_WIN) | 53 #endif // defined(OS_WIN) |
| 57 | 54 |
| 58 #if defined(OS_WIN) || defined(OS_MACOSX) | 55 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 59 void OnParseITunesLibraryXmlFile( | 56 void OnParseITunesLibraryXmlFile( |
| 60 const IPC::PlatformFileForTransit& itunes_library_file); | 57 const IPC::PlatformFileForTransit& itunes_library_file); |
| 61 | 58 |
| 62 void OnParsePicasaPMPDatabase( | 59 void OnParsePicasaPMPDatabase( |
| 63 const picasa::AlbumTableFilesForTransit& album_table_files); | 60 const picasa::AlbumTableFilesForTransit& album_table_files); |
| 64 | 61 |
| 65 void OnIndexPicasaAlbumsContents( | 62 void OnIndexPicasaAlbumsContents( |
| 66 const picasa::AlbumUIDSet& album_uids, | 63 const picasa::AlbumUIDSet& album_uids, |
| 67 const std::vector<picasa::FolderINIContents>& folders_inis); | 64 const std::vector<picasa::FolderINIContents>& folders_inis); |
| 68 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 65 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
| 69 | 66 |
| 70 UtilityHandler utility_handler_; | 67 UtilityHandler utility_handler_; |
| 71 | 68 |
| 72 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); | 69 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); |
| 73 }; | 70 }; |
| 74 | 71 |
| 75 } // namespace extensions | 72 } // namespace extensions |
| 76 | 73 |
| 77 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ | 74 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ |
| OLD | NEW |