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

Unified Diff: content/renderer/browser_plugin/browser_plugin_registry.cc

Issue 10555029: Browser Plugin: Move to old directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/browser_plugin_registry.cc
diff --git a/content/renderer/browser_plugin/browser_plugin_registry.cc b/content/renderer/browser_plugin/browser_plugin_registry.cc
deleted file mode 100644
index 14725e716ed6a2214fed551d4e49e914723556d0..0000000000000000000000000000000000000000
--- a/content/renderer/browser_plugin/browser_plugin_registry.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/renderer/browser_plugin/browser_plugin_registry.h"
-
-#include "base/logging.h"
-
-namespace content {
-
-BrowserPluginRegistry::BrowserPluginRegistry() {
-}
-
-BrowserPluginRegistry::~BrowserPluginRegistry() {
-}
-
-webkit::ppapi::PluginModule* BrowserPluginRegistry::GetModule(
- int guest_process_id) {
- return modules_.Lookup(guest_process_id);
-}
-
-void BrowserPluginRegistry::AddModule(int guest_process_id,
- webkit::ppapi::PluginModule* module) {
- modules_.AddWithID(module, guest_process_id);
-}
-
-void BrowserPluginRegistry::PluginModuleDead(
- webkit::ppapi::PluginModule* dead_module) {
- // DANGER: Don't dereference the dead_module pointer! It may be in the
- // process of being deleted.
-
- // Modules aren't destroyed very often and there are normally at most a
- // couple of them. So for now we just do a brute-force search.
- IDMap<webkit::ppapi::PluginModule>::iterator iter(&modules_);
- while (!iter.IsAtEnd()) {
- if (iter.GetCurrentValue() == dead_module) {
- modules_.Remove(iter.GetCurrentKey());
- return;
- }
- iter.Advance();
- }
- NOTREACHED(); // Should have always found the module above.
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698