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

Side by Side Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 774933004: Prefix CommandLine usage with base namespace (Part 9: components) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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/renderer/ppb_nacl_private_impl.h" 5 #include "components/nacl/renderer/ppb_nacl_private_impl.h"
6 6
7 #include <numeric> 7 #include <numeric>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 500
501 int UrandomFD(void) { 501 int UrandomFD(void) {
502 #if defined(OS_POSIX) 502 #if defined(OS_POSIX)
503 return base::GetUrandomFD(); 503 return base::GetUrandomFD();
504 #else 504 #else
505 return -1; 505 return -1;
506 #endif 506 #endif
507 } 507 }
508 508
509 PP_Bool Are3DInterfacesDisabled() { 509 PP_Bool Are3DInterfacesDisabled() {
510 return PP_FromBool(CommandLine::ForCurrentProcess()->HasSwitch( 510 return PP_FromBool(base::CommandLine::ForCurrentProcess()->HasSwitch(
511 switches::kDisable3DAPIs)); 511 switches::kDisable3DAPIs));
512 } 512 }
513 513
514 int32_t BrokerDuplicateHandle(PP_FileHandle source_handle, 514 int32_t BrokerDuplicateHandle(PP_FileHandle source_handle,
515 uint32_t process_id, 515 uint32_t process_id,
516 PP_FileHandle* target_handle, 516 PP_FileHandle* target_handle,
517 uint32_t desired_access, 517 uint32_t desired_access,
518 uint32_t options) { 518 uint32_t options) {
519 #if defined(OS_WIN) 519 #if defined(OS_WIN)
520 return content::BrokerDuplicateHandle(source_handle, process_id, 520 return content::BrokerDuplicateHandle(source_handle, process_id,
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 void InstanceCreated(PP_Instance instance) { 759 void InstanceCreated(PP_Instance instance) {
760 NexeLoadManager::Create(instance); 760 NexeLoadManager::Create(instance);
761 } 761 }
762 762
763 void InstanceDestroyed(PP_Instance instance) { 763 void InstanceDestroyed(PP_Instance instance) {
764 DeleteJsonManifest(instance); 764 DeleteJsonManifest(instance);
765 NexeLoadManager::Delete(instance); 765 NexeLoadManager::Delete(instance);
766 } 766 }
767 767
768 PP_Bool NaClDebugEnabledForURL(const char* alleged_nmf_url) { 768 PP_Bool NaClDebugEnabledForURL(const char* alleged_nmf_url) {
769 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableNaClDebug)) 769 if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
770 switches::kEnableNaClDebug))
770 return PP_FALSE; 771 return PP_FALSE;
771 IPC::Sender* sender = content::RenderThread::Get(); 772 IPC::Sender* sender = content::RenderThread::Get();
772 DCHECK(sender); 773 DCHECK(sender);
773 bool should_debug = false; 774 bool should_debug = false;
774 return PP_FromBool( 775 return PP_FromBool(
775 sender->Send(new NaClHostMsg_NaClDebugEnabledForURL(GURL(alleged_nmf_url), 776 sender->Send(new NaClHostMsg_NaClDebugEnabledForURL(GURL(alleged_nmf_url),
776 &should_debug)) && 777 &should_debug)) &&
777 should_debug); 778 should_debug);
778 } 779 }
779 780
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 &StreamPexe 1692 &StreamPexe
1692 }; 1693 };
1693 1694
1694 } // namespace 1695 } // namespace
1695 1696
1696 const PPB_NaCl_Private* GetNaClPrivateInterface() { 1697 const PPB_NaCl_Private* GetNaClPrivateInterface() {
1697 return &nacl_interface; 1698 return &nacl_interface;
1698 } 1699 }
1699 1700
1700 } // namespace nacl 1701 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc ('k') | components/nacl/zygote/nacl_fork_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698