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 #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/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 BrowserMessageFilter::BrowserMessageFilter() | 14 BrowserMessageFilter::BrowserMessageFilter() |
15 : channel_(NULL), peer_handle_(base::kNullProcessHandle) { | 15 : channel_(NULL), peer_handle_(base::kNullProcessHandle) { |
16 } | 16 } |
17 | 17 |
18 BrowserMessageFilter::~BrowserMessageFilter() { | 18 BrowserMessageFilter::~BrowserMessageFilter() { |
19 base::CloseProcessHandle(peer_handle_); | 19 base::CloseProcessHandle(peer_handle_); |
20 } | 20 } |
21 | 21 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 "messages in the renderer or else deadlocks can occur if the page " | 113 "messages in the renderer or else deadlocks can occur if the page " |
114 "has windowed plugins! (message type " << message.type() << ")"; | 114 "has windowed plugins! (message type " << message.type() << ")"; |
115 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message); | 115 IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message); |
116 reply->set_reply_error(); | 116 reply->set_reply_error(); |
117 sender->Send(reply); | 117 sender->Send(reply); |
118 return false; | 118 return false; |
119 } | 119 } |
120 #endif | 120 #endif |
121 return true; | 121 return true; |
122 } | 122 } |
OLD | NEW |