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 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 NaClProcessHost* client = it->second.get(); | 89 NaClProcessHost* client = it->second.get(); |
90 if (client) | 90 if (client) |
91 client->OnDebugExceptionHandlerLaunchedByBroker(success); | 91 client->OnDebugExceptionHandlerLaunchedByBroker(success); |
92 pending_debuggers_.erase(it); | 92 pending_debuggers_.erase(it); |
93 } | 93 } |
94 | 94 |
95 NaClBrokerHost* NaClBrokerService::GetBrokerHost() { | 95 NaClBrokerHost* NaClBrokerService::GetBrokerHost() { |
96 BrowserChildProcessHostIterator iter(PROCESS_TYPE_NACL_BROKER); | 96 BrowserChildProcessHostIterator iter(PROCESS_TYPE_NACL_BROKER); |
97 while (!iter.Done()) { | 97 while (!iter.Done()) { |
98 NaClBrokerHost* host = static_cast<NaClBrokerHost*>( | 98 NaClBrokerHost* host = static_cast<NaClBrokerHost*>(iter.GetDelegate()); |
99 iter.GetDelegate()); | |
100 if (!host->IsTerminating()) | 99 if (!host->IsTerminating()) |
101 return host; | 100 return host; |
102 ++iter; | 101 ++iter; |
103 } | 102 } |
104 return NULL; | 103 return NULL; |
105 } | 104 } |
106 | 105 |
107 } // namespace nacl | 106 } // namespace nacl |
OLD | NEW |