OLD | NEW |
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_BROWSER_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_BROWSER_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_BROWSER_MESSAGE_FILTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "content/browser/browser_thread.h" | |
11 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/browser_thread.h" |
12 #include "ipc/ipc_channel_proxy.h" | 12 #include "ipc/ipc_channel_proxy.h" |
13 | 13 |
14 // Base class for message filters in the browser process. You can receive and | 14 // Base class for message filters in the browser process. You can receive and |
15 // send messages on any thread. | 15 // send messages on any thread. |
16 class CONTENT_EXPORT BrowserMessageFilter : | 16 class CONTENT_EXPORT BrowserMessageFilter : |
17 public IPC::ChannelProxy::MessageFilter, | 17 public IPC::ChannelProxy::MessageFilter, |
18 public IPC::Message::Sender { | 18 public IPC::Message::Sender { |
19 public: | 19 public: |
20 BrowserMessageFilter(); | 20 BrowserMessageFilter(); |
21 virtual ~BrowserMessageFilter(); | 21 virtual ~BrowserMessageFilter(); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 private: | 63 private: |
64 // Dispatches a message to the derived class. | 64 // Dispatches a message to the derived class. |
65 bool DispatchMessage(const IPC::Message& message); | 65 bool DispatchMessage(const IPC::Message& message); |
66 | 66 |
67 IPC::Channel* channel_; | 67 IPC::Channel* channel_; |
68 base::ProcessHandle peer_handle_; | 68 base::ProcessHandle peer_handle_; |
69 }; | 69 }; |
70 | 70 |
71 #endif // CONTENT_BROWSER_BROWSER_MESSAGE_FILTER_H_ | 71 #endif // CONTENT_BROWSER_BROWSER_MESSAGE_FILTER_H_ |
OLD | NEW |