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

Unified Diff: chrome/browser/mime_registry_dispatcher.h

Issue 5698008: Switch a bunch of remaining filters to derive from BrowserMessageFilters so t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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: chrome/browser/mime_registry_dispatcher.h
===================================================================
--- chrome/browser/mime_registry_dispatcher.h (revision 68877)
+++ chrome/browser/mime_registry_dispatcher.h (working copy)
@@ -1,37 +0,0 @@
-// Copyright (c) 2010 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.
-
-#ifndef CHROME_BROWSER_MIME_REGISTRY_DISPATCHER_H_
-#define CHROME_BROWSER_MIME_REGISTRY_DISPATCHER_H_
-
-#include "base/file_path.h"
-#include "base/ref_counted.h"
-#include "ipc/ipc_message.h"
-
-class MimeRegistryDispatcher
- : public base::RefCountedThreadSafe<MimeRegistryDispatcher> {
- public:
- explicit MimeRegistryDispatcher(IPC::Message::Sender* sender);
- void Shutdown();
- bool OnMessageReceived(const IPC::Message& message);
- void Send(IPC::Message* message);
-
- private:
- friend class base::RefCountedThreadSafe<MimeRegistryDispatcher>;
- ~MimeRegistryDispatcher();
-
- void OnGetMimeTypeFromExtension(const FilePath::StringType& ext,
- IPC::Message* reply);
- void OnGetMimeTypeFromFile(const FilePath& file_path,
- IPC::Message* reply);
- void OnGetPreferredExtensionForMimeType(const std::string& mime_type,
- IPC::Message* reply);
-
- // The sender to be used for sending out IPC messages.
- IPC::Message::Sender* message_sender_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(MimeRegistryDispatcher);
-};
-
-#endif // CHROME_BROWSER_MIME_REGISTRY_DISPATCHER_H_
« no previous file with comments | « chrome/browser/file_system/file_system_dispatcher_host.cc ('k') | chrome/browser/mime_registry_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698