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

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

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, 6 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
« no previous file with comments | « content/browser/mime_registry_impl.cc ('k') | content/browser/mime_registry_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_
7
8 #include "base/files/file_path.h"
9 #include "content/public/browser/browser_message_filter.h"
10
11 namespace content {
12
13 class MimeRegistryMessageFilter : public BrowserMessageFilter {
14 public:
15 MimeRegistryMessageFilter();
16
17 void OverrideThreadForMessage(const IPC::Message& message,
18 BrowserThread::ID* thread) override;
19 bool OnMessageReceived(const IPC::Message& message) override;
20
21 private:
22 ~MimeRegistryMessageFilter() override;
23
24 void OnGetMimeTypeFromExtension(const base::FilePath::StringType& ext,
25 std::string* mime_type);
26 void OnGetMimeTypeFromFile(const base::FilePath& file_path,
27 std::string* mime_type);
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_BROWSER_MIME_REGISTRY_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/mime_registry_impl.cc ('k') | content/browser/mime_registry_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698