OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/nacl_process_host.h" | 7 #include "chrome/browser/nacl_process_host.h" |
8 | 8 |
9 #if defined(OS_POSIX) | 9 #if defined(OS_POSIX) |
10 #include <fcntl.h> | 10 #include <fcntl.h> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 switches::kLoggingLevel, | 139 switches::kLoggingLevel, |
140 switches::kEnableDCHECK, | 140 switches::kEnableDCHECK, |
141 switches::kSilentDumpOnDCHECK, | 141 switches::kSilentDumpOnDCHECK, |
142 switches::kMemoryProfiling, | 142 switches::kMemoryProfiling, |
143 }; | 143 }; |
144 | 144 |
145 for (size_t i = 0; i < arraysize(switch_names); ++i) { | 145 for (size_t i = 0; i < arraysize(switch_names); ++i) { |
146 if (browser_command_line.HasSwitch(switch_names[i])) { | 146 if (browser_command_line.HasSwitch(switch_names[i])) { |
147 cmd_line.AppendSwitchWithValue( | 147 cmd_line.AppendSwitchWithValue( |
148 switch_names[i], | 148 switch_names[i], |
149 browser_command_line.GetSwitchValue(switch_names[i])); | 149 browser_command_line.GetSwitchValueASCII(switch_names[i])); |
150 } | 150 } |
151 } | 151 } |
152 | 152 |
153 cmd_line.AppendSwitchWithValue(switches::kProcessType, | 153 cmd_line.AppendSwitchWithValue(switches::kProcessType, |
154 switches::kNaClProcess); | 154 switches::kNaClProcess); |
155 | 155 |
156 cmd_line.AppendSwitchWithValue(switches::kProcessChannelID, | 156 cmd_line.AppendSwitchWithValue(switches::kProcessChannelID, |
157 ASCIIToWide(channel_id())); | 157 ASCIIToWide(channel_id())); |
158 | 158 |
159 base::ProcessHandle process = 0; | 159 base::ProcessHandle process = 0; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 void NaClProcessHost::OnMessageReceived(const IPC::Message& msg) { | 205 void NaClProcessHost::OnMessageReceived(const IPC::Message& msg) { |
206 NOTREACHED() << "Invalid message with type = " << msg.type(); | 206 NOTREACHED() << "Invalid message with type = " << msg.type(); |
207 } | 207 } |
208 | 208 |
209 URLRequestContext* NaClProcessHost::GetRequestContext( | 209 URLRequestContext* NaClProcessHost::GetRequestContext( |
210 uint32 request_id, | 210 uint32 request_id, |
211 const ViewHostMsg_Resource_Request& request_data) { | 211 const ViewHostMsg_Resource_Request& request_data) { |
212 return NULL; | 212 return NULL; |
213 } | 213 } |
OLD | NEW |