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

Unified Diff: chrome/utility/extensions/extensions_handler.h

Issue 2615423002: Convert utility process ParseMediaMetadata IPC to mojo (Closed)
Patch Set: Security review comments. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/extensions/extensions_handler.h
diff --git a/chrome/utility/extensions/extensions_handler.h b/chrome/utility/extensions/extensions_handler.h
index 4098d77a708172a9d3f2c9f5b6b6d586b16dbd59..9b9efa13dfab64169cfc04f80e18925cbd507c42 100644
--- a/chrome/utility/extensions/extensions_handler.h
+++ b/chrome/utility/extensions/extensions_handler.h
@@ -22,16 +22,27 @@
class ChromeContentUtilityClient;
+namespace service_manager {
+class InterfaceRegistry;
+}
+
namespace extensions {
// Dispatches IPCs for Chrome extensions utility messages.
class ExtensionsHandler : public UtilityMessageHandler {
public:
- explicit ExtensionsHandler(ChromeContentUtilityClient* utility_client);
+ ExtensionsHandler();
~ExtensionsHandler() override;
static void PreSandboxStartup();
+ // TODO(noel): consider moving this API to the UtilityMessageHandler
+ // interface.
+ static void ExposeInterfacesToBrowser(
+ service_manager::InterfaceRegistry* registry,
+ ChromeContentUtilityClient* utility_client,
+ bool running_elevated);
+
// UtilityMessageHandler:
bool OnMessageReceived(const IPC::Message& message) override;
@@ -40,10 +51,6 @@ class ExtensionsHandler : public UtilityMessageHandler {
void OnCheckMediaFile(int64_t milliseconds_of_decoding,
const IPC::PlatformFileForTransit& media_file);
- void OnParseMediaMetadata(const std::string& mime_type,
- int64_t total_size,
- bool get_attached_images);
-
#if defined(OS_WIN)
void OnParseITunesPrefXml(const std::string& itunes_xml_data);
#endif // defined(OS_WIN)
@@ -66,9 +73,6 @@ class ExtensionsHandler : public UtilityMessageHandler {
UtilityHandler utility_handler_;
- // The client that owns this.
- ChromeContentUtilityClient* const utility_client_;
-
DISALLOW_COPY_AND_ASSIGN(ExtensionsHandler);
};
« no previous file with comments | « chrome/utility/chrome_content_utility_client.cc ('k') | chrome/utility/extensions/extensions_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698