Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: chrome/utility/extensions/extensions_handler.h

Issue 345693002: Extensions: Split extensions utility IPC messages into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable another test Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_
6 #define CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_
7
8 #include "base/base64.h"
9 #include "base/compiler_specific.h"
10 #include "base/json/json_reader.h"
11 #include "base/macros.h"
12 #include "chrome/common/media_galleries/picasa_types.h"
13 #include "chrome/utility/utility_message_handler.h"
14
15 #if !defined(ENABLE_EXTENSIONS)
16 #error "Extensions must be enabled"
17 #endif
18
19 namespace metadata {
20 class MediaMetadataParser;
21 }
22
23 namespace extensions {
24
25 // Dispatches IPCs for printing.
26 class ExtensionsHandler : public UtilityMessageHandler {
27 public:
28 ExtensionsHandler();
29 virtual ~ExtensionsHandler();
30
31 static void PreSandboxStartup();
32 static void UtilityThreadStarted();
33
34 // IPC::Listener:
35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
36
37 private:
38 // IPC message handlers.
39 void OnUnpackExtension(const base::FilePath& extension_path,
40 const std::string& extension_id,
41 int location, int creation_flags);
42 void OnParseUpdateManifest(const std::string& xml);
43 void OnDecodeImageBase64(const std::string& encoded_data);
44 void OnParseJSON(const std::string& json);
45 void OnCheckMediaFile(int64 milliseconds_of_decoding,
46 const IPC::PlatformFileForTransit& media_file);
47
48 #if defined(OS_WIN)
49 void OnParseITunesPrefXml(const std::string& itunes_xml_data);
50 #endif // defined(OS_WIN)
51
52 #if defined(OS_MACOSX)
53 void OnParseIPhotoLibraryXmlFile(
54 const IPC::PlatformFileForTransit& iphoto_library_file);
55 #endif // defined(OS_MACOSX)
56
57 #if defined(OS_WIN) || defined(OS_MACOSX)
58 void OnParseITunesLibraryXmlFile(
59 const IPC::PlatformFileForTransit& itunes_library_file);
60
61 void OnParsePicasaPMPDatabase(
62 const picasa::AlbumTableFilesForTransit& album_table_files);
63
64 void OnIndexPicasaAlbumsContents(
65 const picasa::AlbumUIDSet& album_uids,
66 const std::vector<picasa::FolderINIContents>& folders_inis);
67 #endif // defined(OS_WIN) || defined(OS_MACOSX)
68
69 #if defined(OS_WIN)
70 void OnGetAndEncryptWiFiCredentials(const std::string& network_guid,
71 const std::vector<uint8>& public_key);
72 #endif // defined(OS_WIN)
73
74 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler);
75 };
76
77 } // namespace extensions
78
79 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/utility/chrome_content_utility_ipc_whitelist.cc ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698