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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_broker_service_win.h" 5 #include "components/nacl/browser/nacl_broker_service_win.h"
6 6
7 #include "components/nacl/browser/nacl_process_host.h" 7 #include "components/nacl/browser/nacl_process_host.h"
8 #include "components/nacl/common/nacl_process_type.h" 8 #include "components/nacl/common/nacl_process_type.h"
9 #include "content/public/browser/browser_child_process_host_iterator.h" 9 #include "content/public/browser/browser_child_process_host_iterator.h"
10 10
11 using content::BrowserChildProcessHostIterator; 11 using content::BrowserChildProcessHostIterator;
12 12
13 namespace nacl { 13 namespace nacl {
14 14
15 NaClBrokerService* NaClBrokerService::GetInstance() { 15 NaClBrokerService* NaClBrokerService::GetInstance() {
16 return Singleton<NaClBrokerService>::get(); 16 return base::Singleton<NaClBrokerService>::get();
17 } 17 }
18 18
19 NaClBrokerService::NaClBrokerService() 19 NaClBrokerService::NaClBrokerService()
20 : loaders_running_(0) { 20 : loaders_running_(0) {
21 } 21 }
22 22
23 NaClBrokerService::~NaClBrokerService() { 23 NaClBrokerService::~NaClBrokerService() {
24 } 24 }
25 25
26 bool NaClBrokerService::StartBroker() { 26 bool NaClBrokerService::StartBroker() {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 while (!iter.Done()) { 100 while (!iter.Done()) {
101 NaClBrokerHost* host = static_cast<NaClBrokerHost*>(iter.GetDelegate()); 101 NaClBrokerHost* host = static_cast<NaClBrokerHost*>(iter.GetDelegate());
102 if (!host->IsTerminating()) 102 if (!host->IsTerminating())
103 return host; 103 return host;
104 ++iter; 104 ++iter;
105 } 105 }
106 return NULL; 106 return NULL;
107 } 107 }
108 108
109 } // namespace nacl 109 } // namespace nacl
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_broker_service_win.h ('k') | components/nacl/browser/nacl_browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698