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

Unified Diff: content/browser/renderer_host/render_view_host_observer.cc

Issue 8676032: Move RenderViewHostObserver to content/public/browser/ and put it into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add render_view_host.h to DEPS file Created 9 years, 1 month 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
« no previous file with comments | « content/browser/renderer_host/render_view_host_observer.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_observer.cc
diff --git a/content/browser/renderer_host/render_view_host_observer.cc b/content/browser/renderer_host/render_view_host_observer.cc
deleted file mode 100644
index d0fe61e8cbea1804d6c68b264711bdad015964c4..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/render_view_host_observer.cc
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 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/browser/renderer_host/render_view_host_observer.h"
-
-#include "content/browser/renderer_host/render_view_host.h"
-
-RenderViewHostObserver::RenderViewHostObserver(RenderViewHost* render_view_host)
- : render_view_host_(render_view_host),
- routing_id_(render_view_host->routing_id()) {
- render_view_host_->AddObserver(this);
-}
-
-RenderViewHostObserver::~RenderViewHostObserver() {
- if (render_view_host_)
- render_view_host_->RemoveObserver(this);
-}
-
-void RenderViewHostObserver::RenderViewHostInitialized() {
-}
-
-void RenderViewHostObserver::RenderViewHostDestroyed(RenderViewHost* rvh) {
- delete this;
-}
-
-void RenderViewHostObserver::Navigate(const GURL& url) {
-}
-
-bool RenderViewHostObserver::OnMessageReceived(const IPC::Message& message) {
- return false;
-}
-
-bool RenderViewHostObserver::Send(IPC::Message* message) {
- if (!render_view_host_) {
- delete message;
- return false;
- }
-
- return render_view_host_->Send(message);
-}
-
-void RenderViewHostObserver::RenderViewHostDestruction() {
- render_view_host_->RemoveObserver(this);
- RenderViewHost* rvh = render_view_host_;
- render_view_host_ = NULL;
- RenderViewHostDestroyed(rvh);
-}
« no previous file with comments | « content/browser/renderer_host/render_view_host_observer.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698