OLD | NEW |
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 Loading... |
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 |
OLD | NEW |