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

Side by Side Diff: components/nacl/browser/nacl_host_message_filter.cc

Issue 165333004: Revert "Allow MessageFilters to restrict listening to specific message classes" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/nacl/browser/nacl_host_message_filter.h" 5 #include "components/nacl/browser/nacl_host_message_filter.h"
6 6
7 #include "base/sys_info.h" 7 #include "base/sys_info.h"
8 #include "components/nacl/browser/nacl_browser.h" 8 #include "components/nacl/browser/nacl_browser.h"
9 #include "components/nacl/browser/nacl_file_host.h" 9 #include "components/nacl/browser/nacl_file_host.h"
10 #include "components/nacl/browser/nacl_process_host.h" 10 #include "components/nacl/browser/nacl_process_host.h"
11 #include "components/nacl/browser/pnacl_host.h" 11 #include "components/nacl/browser/pnacl_host.h"
12 #include "components/nacl/common/nacl_host_messages.h" 12 #include "components/nacl/common/nacl_host_messages.h"
13 #include "ipc/ipc_platform_file.h" 13 #include "ipc/ipc_platform_file.h"
14 #include "net/url_request/url_request_context.h" 14 #include "net/url_request/url_request_context.h"
15 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace nacl { 18 namespace nacl {
19 19
20 NaClHostMessageFilter::NaClHostMessageFilter( 20 NaClHostMessageFilter::NaClHostMessageFilter(
21 int render_process_id, 21 int render_process_id,
22 bool is_off_the_record, 22 bool is_off_the_record,
23 const base::FilePath& profile_directory, 23 const base::FilePath& profile_directory,
24 net::URLRequestContextGetter* request_context) 24 net::URLRequestContextGetter* request_context)
25 : BrowserMessageFilter(NaClHostMsgStart), 25 : render_process_id_(render_process_id),
26 render_process_id_(render_process_id),
27 off_the_record_(is_off_the_record), 26 off_the_record_(is_off_the_record),
28 profile_directory_(profile_directory), 27 profile_directory_(profile_directory),
29 request_context_(request_context), 28 request_context_(request_context),
30 weak_ptr_factory_(this) { 29 weak_ptr_factory_(this) {
31 } 30 }
32 31
33 NaClHostMessageFilter::~NaClHostMessageFilter() { 32 NaClHostMessageFilter::~NaClHostMessageFilter() {
34 } 33 }
35 34
36 void NaClHostMessageFilter::OnChannelClosing() { 35 void NaClHostMessageFilter::OnChannelClosing() {
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 175
177 void NaClHostMessageFilter::OnOpenNaClExecutable(int render_view_id, 176 void NaClHostMessageFilter::OnOpenNaClExecutable(int render_view_id,
178 const GURL& file_url, 177 const GURL& file_url,
179 IPC::Message* reply_msg) { 178 IPC::Message* reply_msg) {
180 nacl_file_host::OpenNaClExecutable(this, render_view_id, file_url, 179 nacl_file_host::OpenNaClExecutable(this, render_view_id, file_url,
181 reply_msg); 180 reply_msg);
182 } 181 }
183 #endif 182 #endif
184 183
185 } // namespace nacl 184 } // namespace nacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698