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

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

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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/browser_main_loop.cc ('k') | content/browser/browser_process_sub_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/browser_process_sub_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698