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 |