| OLD | NEW |
| 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 "chrome/browser/nacl_host/nacl_broker_service_win.h" | 5 #include "chrome/browser/nacl_host/nacl_broker_service_win.h" |
| 6 | 6 |
| 7 #include "chrome/browser/nacl_host/nacl_process_host.h" | 7 #include "chrome/browser/nacl_host/nacl_process_host.h" |
| 8 #include "chrome/common/chrome_switches.h" | |
| 9 | 8 |
| 10 NaClBrokerService* NaClBrokerService::GetInstance() { | 9 NaClBrokerService* NaClBrokerService::GetInstance() { |
| 11 return Singleton<NaClBrokerService>::get(); | 10 return Singleton<NaClBrokerService>::get(); |
| 12 } | 11 } |
| 13 | 12 |
| 14 NaClBrokerService::NaClBrokerService() | 13 NaClBrokerService::NaClBrokerService() |
| 15 : loaders_running_(0), | 14 : loaders_running_(0), |
| 16 resource_dispatcher_host_(NULL), | 15 resource_dispatcher_host_(NULL), |
| 17 initialized_(false) { | 16 initialized_(false) { |
| 18 } | 17 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 NaClBrokerHost* NaClBrokerService::GetBrokerHost() { | 72 NaClBrokerHost* NaClBrokerService::GetBrokerHost() { |
| 74 for (BrowserChildProcessHost::Iterator iter( | 73 for (BrowserChildProcessHost::Iterator iter( |
| 75 ChildProcessInfo::NACL_BROKER_PROCESS); | 74 ChildProcessInfo::NACL_BROKER_PROCESS); |
| 76 !iter.Done(); | 75 !iter.Done(); |
| 77 ++iter) { | 76 ++iter) { |
| 78 NaClBrokerHost* broker_host = static_cast<NaClBrokerHost*>(*iter); | 77 NaClBrokerHost* broker_host = static_cast<NaClBrokerHost*>(*iter); |
| 79 return broker_host; | 78 return broker_host; |
| 80 } | 79 } |
| 81 return NULL; | 80 return NULL; |
| 82 } | 81 } |
| OLD | NEW |