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 "content/renderer/browser_plugin/old/browser_plugin_registry.h" | 5 #include "content/renderer/browser_plugin/old/browser_plugin_registry.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
| 10 namespace old { |
10 | 11 |
11 BrowserPluginRegistry::BrowserPluginRegistry() { | 12 BrowserPluginRegistry::BrowserPluginRegistry() { |
12 } | 13 } |
13 | 14 |
14 BrowserPluginRegistry::~BrowserPluginRegistry() { | 15 BrowserPluginRegistry::~BrowserPluginRegistry() { |
15 } | 16 } |
16 | 17 |
17 webkit::ppapi::PluginModule* BrowserPluginRegistry::GetModule( | 18 webkit::ppapi::PluginModule* BrowserPluginRegistry::GetModule( |
18 int guest_process_id) { | 19 int guest_process_id) { |
19 return modules_.Lookup(guest_process_id); | 20 return modules_.Lookup(guest_process_id); |
(...skipping 15 matching lines...) Expand all Loading... |
35 while (!iter.IsAtEnd()) { | 36 while (!iter.IsAtEnd()) { |
36 if (iter.GetCurrentValue() == dead_module) { | 37 if (iter.GetCurrentValue() == dead_module) { |
37 modules_.Remove(iter.GetCurrentKey()); | 38 modules_.Remove(iter.GetCurrentKey()); |
38 return; | 39 return; |
39 } | 40 } |
40 iter.Advance(); | 41 iter.Advance(); |
41 } | 42 } |
42 NOTREACHED(); // Should have always found the module above. | 43 NOTREACHED(); // Should have always found the module above. |
43 } | 44 } |
44 | 45 |
| 46 } // namespace old |
45 } // namespace content | 47 } // namespace content |
OLD | NEW |