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

Unified Diff: content/browser/mime_registry_message_filter.cc

Issue 2024363002: Convert MimeRegistry to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@message-mojom-magic
Patch Set: Created 4 years, 7 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
Index: content/browser/mime_registry_message_filter.cc
diff --git a/content/browser/mime_registry_message_filter.cc b/content/browser/mime_registry_message_filter.cc
deleted file mode 100644
index 1b6987e78767475dabd66acb79c47f3d35c7704c..0000000000000000000000000000000000000000
--- a/content/browser/mime_registry_message_filter.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/mime_registry_message_filter.h"
-
-#include "content/common/mime_registry_messages.h"
-#include "net/base/mime_util.h"
-
-namespace content {
-
-MimeRegistryMessageFilter::MimeRegistryMessageFilter()
- : BrowserMessageFilter(MimeRegistryMsgStart) {
-}
-
-MimeRegistryMessageFilter::~MimeRegistryMessageFilter() {
-}
-
-void MimeRegistryMessageFilter::OverrideThreadForMessage(
- const IPC::Message& message,
- BrowserThread::ID* thread) {
- if (IPC_MESSAGE_CLASS(message) == MimeRegistryMsgStart)
- *thread = BrowserThread::FILE;
-}
-
-bool MimeRegistryMessageFilter::OnMessageReceived(const IPC::Message& message) {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(MimeRegistryMessageFilter, message)
- IPC_MESSAGE_HANDLER(MimeRegistryMsg_GetMimeTypeFromExtension,
- OnGetMimeTypeFromExtension)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
-}
-
-void MimeRegistryMessageFilter::OnGetMimeTypeFromExtension(
- const base::FilePath::StringType& ext, std::string* mime_type) {
- net::GetMimeTypeFromExtension(ext, mime_type);
-}
-
-} // namespace content
« no previous file with comments | « content/browser/mime_registry_message_filter.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698