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

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

Issue 6672070: Move the remaining files in chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/metrics/user_metrics.h" 10 #include "chrome/browser/metrics/user_metrics.h"
11 #include "chrome/common/result_codes.h" 11 #include "content/common/result_codes.h"
12 12
13 BrowserMessageFilter::BrowserMessageFilter() 13 BrowserMessageFilter::BrowserMessageFilter()
14 : channel_(NULL), peer_handle_(base::kNullProcessHandle) { 14 : channel_(NULL), peer_handle_(base::kNullProcessHandle) {
15 } 15 }
16 16
17 BrowserMessageFilter::~BrowserMessageFilter() { 17 BrowserMessageFilter::~BrowserMessageFilter() {
18 base::CloseProcessHandle(peer_handle_); 18 base::CloseProcessHandle(peer_handle_);
19 } 19 }
20 20
21 void BrowserMessageFilter::OnFilterAdded(IPC::Channel* channel) { 21 void BrowserMessageFilter::OnFilterAdded(IPC::Channel* channel) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_BMF")); 83 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_BMF"));
84 BadMessageReceived(); 84 BadMessageReceived();
85 } 85 }
86 86
87 return rv; 87 return rv;
88 } 88 }
89 89
90 void BrowserMessageFilter::BadMessageReceived() { 90 void BrowserMessageFilter::BadMessageReceived() {
91 base::KillProcess(peer_handle(), ResultCodes::KILLED_BAD_MESSAGE, false); 91 base::KillProcess(peer_handle(), ResultCodes::KILLED_BAD_MESSAGE, false);
92 } 92 }
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host.cc ('k') | content/browser/child_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698