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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MIME_REGISTRY_DISPATCHER_H_
6 #define CHROME_BROWSER_MIME_REGISTRY_DISPATCHER_H_
7
8 #include "base/file_path.h"
9 #include "base/ref_counted.h"
10 #include "ipc/ipc_message.h"
11
12 class MimeRegistryDispatcher
13 : public base::RefCountedThreadSafe<MimeRegistryDispatcher> {
14 public:
15 explicit MimeRegistryDispatcher(IPC::Message::Sender* sender);
16 void Shutdown();
17 bool OnMessageReceived(const IPC::Message& message);
18 void Send(IPC::Message* message);
19
20 private:
21 friend class base::RefCountedThreadSafe<MimeRegistryDispatcher>;
22 ~MimeRegistryDispatcher();
23
24 void OnGetMimeTypeFromExtension(const FilePath::StringType& ext,
25 IPC::Message* reply);
26 void OnGetMimeTypeFromFile(const FilePath& file_path,
27 IPC::Message* reply);
28 void OnGetPreferredExtensionForMimeType(const std::string& mime_type,
29 IPC::Message* reply);
30
31 // The sender to be used for sending out IPC messages.
32 IPC::Message::Sender* message_sender_;
33
34 DISALLOW_IMPLICIT_CONSTRUCTORS(MimeRegistryDispatcher);
35 };
36
37 #endif // CHROME_BROWSER_MIME_REGISTRY_DISPATCHER_H_
OLDNEW
« 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