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

Side by Side Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/nacl_host/nacl_process_host.h" 7 #include "chrome/browser/nacl_host/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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void NaClProcessHost::OnMessageReceived(const IPC::Message& msg) { 284 void NaClProcessHost::OnMessageReceived(const IPC::Message& msg) {
285 NOTREACHED() << "Invalid message with type = " << msg.type(); 285 NOTREACHED() << "Invalid message with type = " << msg.type();
286 } 286 }
287 287
288 URLRequestContext* NaClProcessHost::GetRequestContext( 288 URLRequestContext* NaClProcessHost::GetRequestContext(
289 uint32 request_id, 289 uint32 request_id,
290 const ViewHostMsg_Resource_Request& request_data) { 290 const ViewHostMsg_Resource_Request& request_data) {
291 return NULL; 291 return NULL;
292 } 292 }
293 293
294 bool NaClProcessHost::CanShutdown() {
295 return true;
296 }
297
294 #if defined(OS_WIN) 298 #if defined(OS_WIN)
295 // TODO(gregoryd): invoke CheckIsWow64 only once, not for each NaClProcessHost 299 // TODO(gregoryd): invoke CheckIsWow64 only once, not for each NaClProcessHost
296 typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL); 300 typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL);
297 void NaClProcessHost::CheckIsWow64() { 301 void NaClProcessHost::CheckIsWow64() {
298 LPFN_ISWOW64PROCESS fnIsWow64Process; 302 LPFN_ISWOW64PROCESS fnIsWow64Process;
299 303
300 fnIsWow64Process = (LPFN_ISWOW64PROCESS) GetProcAddress( 304 fnIsWow64Process = (LPFN_ISWOW64PROCESS) GetProcAddress(
301 GetModuleHandle(TEXT("kernel32")), 305 GetModuleHandle(TEXT("kernel32")),
302 "IsWow64Process"); 306 "IsWow64Process");
303 307
304 if (fnIsWow64Process != NULL) { 308 if (fnIsWow64Process != NULL) {
305 BOOL bIsWow64 = FALSE; 309 BOOL bIsWow64 = FALSE;
306 if (fnIsWow64Process(GetCurrentProcess(),&bIsWow64)) { 310 if (fnIsWow64Process(GetCurrentProcess(),&bIsWow64)) {
307 if (bIsWow64) { 311 if (bIsWow64) {
308 running_on_wow64_ = true; 312 running_on_wow64_ = true;
309 } 313 }
310 } 314 }
311 } 315 }
312 } 316 }
313 #endif 317 #endif
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_process_host.h ('k') | chrome/browser/net/url_request_slow_download_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698