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" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/common/media_galleries/picasa_types.h" | 14 #include "chrome/common/media_galleries/picasa_types.h" |
15 #include "chrome/utility/utility_message_handler.h" | 15 #include "chrome/utility/utility_message_handler.h" |
16 #include "extensions/features/features.h" | 16 #include "extensions/features/features.h" |
17 #include "extensions/utility/utility_handler.h" | 17 #include "extensions/utility/utility_handler.h" |
18 | 18 |
19 #if !BUILDFLAG(ENABLE_EXTENSIONS) | 19 #if !BUILDFLAG(ENABLE_EXTENSIONS) |
20 #error "Extensions must be enabled" | 20 #error "Extensions must be enabled" |
21 #endif | 21 #endif |
22 | 22 |
23 class ChromeContentUtilityClient; | 23 class ChromeContentUtilityClient; |
24 | 24 |
25 namespace metadata { | |
26 class MediaMetadataParser; | |
27 } | |
28 | |
29 namespace extensions { | 25 namespace extensions { |
30 | 26 |
31 // Dispatches IPCs for Chrome extensions utility messages. | 27 // Dispatches IPCs for Chrome extensions utility messages. |
32 class ExtensionsHandler : public UtilityMessageHandler { | 28 class ExtensionsHandler : public UtilityMessageHandler { |
33 public: | 29 public: |
34 explicit ExtensionsHandler(ChromeContentUtilityClient* utility_client); | 30 explicit ExtensionsHandler(ChromeContentUtilityClient* utility_client); |
35 ~ExtensionsHandler() override; | 31 ~ExtensionsHandler() override; |
36 | 32 |
37 static void PreSandboxStartup(); | 33 static void PreSandboxStartup(); |
38 | 34 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 68 |
73 // The client that owns this. | 69 // The client that owns this. |
74 ChromeContentUtilityClient* const utility_client_; | 70 ChromeContentUtilityClient* const utility_client_; |
75 | 71 |
76 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); | 72 DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler); |
77 }; | 73 }; |
78 | 74 |
79 } // namespace extensions | 75 } // namespace extensions |
80 | 76 |
81 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ | 77 #endif // CHROME_UTILITY_EXTENSIONS_EXTENSIONS_HANDLER_H_ |
OLD | NEW |