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

Side by Side Diff: content/renderer/browser_plugin/old/browser_plugin_registry.cc

Issue 10829219: Browser Plugin: Move to old namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 years, 4 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 | Annotate | Revision Log
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698