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

Side by Side Diff: content/browser/mime_registry_message_filter.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "content/public/browser/browser_message_filter.h" 9 #include "content/public/browser/browser_message_filter.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class MimeRegistryMessageFilter : public BrowserMessageFilter { 13 class MimeRegistryMessageFilter : public BrowserMessageFilter {
14 public: 14 public:
15 MimeRegistryMessageFilter(); 15 MimeRegistryMessageFilter();
16 16
17 virtual void OverrideThreadForMessage( 17 virtual void OverrideThreadForMessage(
18 const IPC::Message& message, 18 const IPC::Message& message,
19 BrowserThread::ID* thread) OVERRIDE; 19 BrowserThread::ID* thread) OVERRIDE;
20 virtual bool OnMessageReceived(const IPC::Message& message, 20 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
21 bool* message_was_ok) OVERRIDE;
22 21
23 private: 22 private:
24 virtual ~MimeRegistryMessageFilter(); 23 virtual ~MimeRegistryMessageFilter();
25 24
26 void OnGetMimeTypeFromExtension(const base::FilePath::StringType& ext, 25 void OnGetMimeTypeFromExtension(const base::FilePath::StringType& ext,
27 std::string* mime_type); 26 std::string* mime_type);
28 void OnGetMimeTypeFromFile(const base::FilePath& file_path, 27 void OnGetMimeTypeFromFile(const base::FilePath& file_path,
29 std::string* mime_type); 28 std::string* mime_type);
30 }; 29 };
31 30
32 } // namespace content 31 } // namespace content
33 32
34 #endif // CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_ 33 #endif // CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/message_port_message_filter.cc ('k') | content/browser/mime_registry_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698