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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/browser_message_filter.h ('k') | content/browser/browser_thread_impl.cc » ('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 #include "content/browser/browser_message_filter.h" 5 #include "content/browser/browser_message_filter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "content/browser/user_metrics.h" 10 #include "content/browser/user_metrics.h"
11 #include "content/public/common/result_codes.h" 11 #include "content/public/common/result_codes.h"
12 #include "ipc/ipc_sync_message.h" 12 #include "ipc/ipc_sync_message.h"
13 13
14 using content::BrowserThread;
15
14 BrowserMessageFilter::BrowserMessageFilter() 16 BrowserMessageFilter::BrowserMessageFilter()
15 : channel_(NULL), peer_handle_(base::kNullProcessHandle) { 17 : channel_(NULL), peer_handle_(base::kNullProcessHandle) {
16 } 18 }
17 19
18 BrowserMessageFilter::~BrowserMessageFilter() { 20 BrowserMessageFilter::~BrowserMessageFilter() {
19 base::CloseProcessHandle(peer_handle_); 21 base::CloseProcessHandle(peer_handle_);
20 } 22 }
21 23
22 void BrowserMessageFilter::OnFilterAdded(IPC::Channel* channel) { 24 void BrowserMessageFilter::OnFilterAdded(IPC::Channel* channel) {
23 channel_ = channel; 25 channel_ = channel;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 "messages in the renderer or else deadlocks can occur if the page " 115 "messages in the renderer or else deadlocks can occur if the page "
114 "has windowed plugins! (message type " << message.type() << ")"; 116 "has windowed plugins! (message type " << message.type() << ")";
115 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message); 117 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message);
116 reply->set_reply_error(); 118 reply->set_reply_error();
117 sender->Send(reply); 119 sender->Send(reply);
118 return false; 120 return false;
119 } 121 }
120 #endif 122 #endif
121 return true; 123 return true;
122 } 124 }
OLDNEW
« no previous file with comments | « content/browser/browser_message_filter.h ('k') | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698