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