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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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>
9
8 #include "base/base64.h" 10 #include "base/base64.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "build/build_config.h"
11 #include "chrome/common/media_galleries/picasa_types.h" 14 #include "chrome/common/media_galleries/picasa_types.h"
12 #include "chrome/utility/utility_message_handler.h" 15 #include "chrome/utility/utility_message_handler.h"
13 #include "extensions/utility/utility_handler.h" 16 #include "extensions/utility/utility_handler.h"
14 17
15 #if !defined(ENABLE_EXTENSIONS) 18 #if !defined(ENABLE_EXTENSIONS)
16 #error "Extensions must be enabled" 19 #error "Extensions must be enabled"
17 #endif 20 #endif
18 21
19 class ChromeContentUtilityClient; 22 class ChromeContentUtilityClient;
20 23
21 namespace metadata { 24 namespace metadata {
22 class MediaMetadataParser; 25 class MediaMetadataParser;
23 } 26 }
24 27
25 namespace extensions { 28 namespace extensions {
26 29
27 // Dispatches IPCs for Chrome extensions utility messages. 30 // Dispatches IPCs for Chrome extensions utility messages.
28 class ExtensionsHandler : public UtilityMessageHandler { 31 class ExtensionsHandler : public UtilityMessageHandler {
29 public: 32 public:
30 explicit ExtensionsHandler(ChromeContentUtilityClient* utility_client); 33 explicit ExtensionsHandler(ChromeContentUtilityClient* utility_client);
31 ~ExtensionsHandler() override; 34 ~ExtensionsHandler() override;
32 35
33 static void PreSandboxStartup(); 36 static void PreSandboxStartup();
34 37
35 // UtilityMessageHandler: 38 // UtilityMessageHandler:
36 bool OnMessageReceived(const IPC::Message& message) override; 39 bool OnMessageReceived(const IPC::Message& message) override;
37 40
38 private: 41 private:
39 // IPC message handlers. 42 // IPC message handlers.
40 void OnCheckMediaFile(int64 milliseconds_of_decoding, 43 void OnCheckMediaFile(int64_t milliseconds_of_decoding,
41 const IPC::PlatformFileForTransit& media_file); 44 const IPC::PlatformFileForTransit& media_file);
42 45
43 void OnParseMediaMetadata(const std::string& mime_type, 46 void OnParseMediaMetadata(const std::string& mime_type,
44 int64 total_size, 47 int64_t total_size,
45 bool get_attached_images); 48 bool get_attached_images);
46 49
47 #if defined(OS_WIN) 50 #if defined(OS_WIN)
48 void OnParseITunesPrefXml(const std::string& itunes_xml_data); 51 void OnParseITunesPrefXml(const std::string& itunes_xml_data);
49 #endif // defined(OS_WIN) 52 #endif // defined(OS_WIN)
50 53
51 #if defined(OS_MACOSX) 54 #if defined(OS_MACOSX)
52 void OnParseIPhotoLibraryXmlFile( 55 void OnParseIPhotoLibraryXmlFile(
53 const IPC::PlatformFileForTransit& iphoto_library_file); 56 const IPC::PlatformFileForTransit& iphoto_library_file);
54 #endif // defined(OS_MACOSX) 57 #endif // defined(OS_MACOSX)
(...skipping 18 matching lines...) Expand all
73 76
74 // The client that owns this. 77 // The client that owns this.
75 ChromeContentUtilityClient* const utility_client_; 78 ChromeContentUtilityClient* const utility_client_;
76 79
77 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); 80 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler);
78 }; 81 };
79 82
80 } // namespace extensions 83 } // namespace extensions
81 84
82 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ 85 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/utility/cloud_print/pwg_encoder_unittest.cc ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698