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

Unified Diff: chrome/browser/tab_contents/tab_contents_observer.cc

Issue 6537015: Start moving core pieces of Chrome multi-process code to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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: chrome/browser/tab_contents/tab_contents_observer.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents_observer.cc (revision 75368)
+++ chrome/browser/tab_contents/tab_contents_observer.cc (working copy)
@@ -1,32 +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 "chrome/browser/tab_contents/tab_contents_observer.h"
-
-#include "chrome/browser/renderer_host/render_view_host.h"
-#include "chrome/browser/tab_contents/tab_contents.h"
-
-TabContentsObserver::TabContentsObserver(TabContents* tab_contents)
- : tab_contents_(tab_contents),
- routing_id_(tab_contents->render_view_host()->routing_id()) {
- tab_contents_->AddObserver(this);
-}
-
-TabContentsObserver::~TabContentsObserver() {
- if (tab_contents_)
- tab_contents_->RemoveObserver(this);
-}
-
-bool TabContentsObserver::OnMessageReceived(const IPC::Message& message) {
- return false;
-}
-
-bool TabContentsObserver::Send(IPC::Message* message) {
- if (!tab_contents_->render_view_host()) {
- delete message;
- return false;
- }
-
- return tab_contents_->render_view_host()->Send(message);
-}
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_observer.h ('k') | chrome/browser/tab_contents/tab_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698