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

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

Issue 617123005: Remove BrowserPlugin tests (only one test remaining with existing coverage) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_lifetime_explicit
Patch Set: More cleanup Created 6 years, 3 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_manager_impl.cc
diff --git a/content/renderer/browser_plugin/browser_plugin_manager_impl.cc b/content/renderer/browser_plugin/browser_plugin_manager_impl.cc
deleted file mode 100644
index 8f1b9b046b5c3afd82736205a93f72b6ba78ea96..0000000000000000000000000000000000000000
--- a/content/renderer/browser_plugin/browser_plugin_manager_impl.cc
+++ /dev/null
@@ -1,60 +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_manager_impl.h"
-
-#include "content/common/browser_plugin/browser_plugin_constants.h"
-#include "content/common/browser_plugin/browser_plugin_messages.h"
-#include "content/common/cursors/webcursor.h"
-#include "content/public/renderer/browser_plugin_delegate.h"
-#include "content/renderer/browser_plugin/browser_plugin.h"
-#include "content/renderer/render_thread_impl.h"
-#include "ui/gfx/point.h"
-
-namespace content {
-
-BrowserPluginManagerImpl::BrowserPluginManagerImpl(RenderViewImpl* render_view)
- : BrowserPluginManager(render_view) {
-}
-
-BrowserPluginManagerImpl::~BrowserPluginManagerImpl() {
-}
-
-BrowserPlugin* BrowserPluginManagerImpl::CreateBrowserPlugin(
- RenderViewImpl* render_view,
- blink::WebFrame* frame,
- scoped_ptr<BrowserPluginDelegate> delegate) {
- return new BrowserPlugin(render_view, frame, delegate.Pass());
-}
-
-bool BrowserPluginManagerImpl::Send(IPC::Message* msg) {
- return RenderThread::Get()->Send(msg);
-}
-
-bool BrowserPluginManagerImpl::OnMessageReceived(
- const IPC::Message& message) {
- if (BrowserPlugin::ShouldForwardToBrowserPlugin(message)) {
- int browser_plugin_instance_id = browser_plugin::kInstanceIDNone;
- // All allowed messages must have |browser_plugin_instance_id| as their
- // first parameter.
- PickleIterator iter(message);
- bool success = iter.ReadInt(&browser_plugin_instance_id);
- DCHECK(success);
- BrowserPlugin* plugin = GetBrowserPlugin(browser_plugin_instance_id);
- if (plugin && plugin->OnMessageReceived(message))
- return true;
- }
-
- return false;
-}
-
-void BrowserPluginManagerImpl::DidCommitCompositorFrame() {
- IDMap<BrowserPlugin>::iterator iter(&instances_);
- while (!iter.IsAtEnd()) {
- iter.GetCurrentValue()->DidCommitCompositorFrame();
- iter.Advance();
- }
-}
-
-} // namespace content
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.h ('k') | content/renderer/browser_plugin/mock_browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698