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

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

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.h
===================================================================
--- chrome/browser/tab_contents/tab_contents_observer.h (revision 75368)
+++ chrome/browser/tab_contents/tab_contents_observer.h (working copy)
@@ -5,65 +5,7 @@
#ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
#define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
-#include "chrome/browser/tab_contents/navigation_controller.h"
-#include "ipc/ipc_channel.h"
+// TODO(jam): remove this file when all files have been converted.
+#include "content/browser/tab_contents/tab_contents_observer.h"
-struct ViewHostMsg_FrameNavigate_Params;
-
-// An observer API implemented by classes which are interested in various page
-// load events from TabContents. They also get a chance to filter IPC messages.
-class TabContentsObserver : public IPC::Channel::Listener {
- public:
- virtual void NavigateToPendingEntry() { }
-
- virtual void DidNavigateMainFramePostCommit(
- const NavigationController::LoadCommittedDetails& details,
- const ViewHostMsg_FrameNavigate_Params& params) { }
- virtual void DidNavigateAnyFramePostCommit(
- const NavigationController::LoadCommittedDetails& details,
- const ViewHostMsg_FrameNavigate_Params& params) { }
-
- virtual void DidStartLoading() { }
- virtual void DidStopLoading() { }
-
-#if 0
- // For unifying with delegate...
-
- // Notifies the delegate that this contents is starting or is done loading
- // some resource. The delegate should use this notification to represent
- // loading feedback. See TabContents::is_loading()
- virtual void LoadingStateChanged(TabContents* contents) { }
- // Called to inform the delegate that the tab content's navigation state
- // changed. The |changed_flags| indicates the parts of the navigation state
- // that have been updated, and is any combination of the
- // |TabContents::InvalidateTypes| bits.
- virtual void NavigationStateChanged(const TabContents* source,
- unsigned changed_flags) { }
-#endif
-
- protected:
- TabContentsObserver(TabContents* tab_contents);
- virtual ~TabContentsObserver();
-
- // IPC::Channel::Listener implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
- // IPC::Message::Sender implementation.
- virtual bool Send(IPC::Message* message);
-
- TabContents* tab_contents() { return tab_contents_; }
- int routing_id() { return routing_id_; }
-
- private:
- friend class TabContents;
-
- void set_tab_contents(TabContents* tc) { tab_contents_ = tc; }
-
- TabContents* tab_contents_;
- // The routing ID of the associated TabContents.
- int routing_id_;
-
- DISALLOW_COPY_AND_ASSIGN(TabContentsObserver);
-};
-
#endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.cc ('k') | chrome/browser/tab_contents/tab_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698