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

Side by Side Diff: content/browser/tab_contents/tab_contents_observer.h

Issue 8469015: Switch BackgroundContents to use TabContents instead of RenderViewHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittest 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
7 7
8 #include "content/browser/tab_contents/navigation_controller.h" 8 #include "content/browser/tab_contents/navigation_controller.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "content/public/common/page_transition_types.h"
11 #include "ipc/ipc_channel.h" 11 #include "ipc/ipc_channel.h"
12 #include "webkit/glue/window_open_disposition.h" 12 #include "webkit/glue/window_open_disposition.h"
13 13
14 class RenderViewHost; 14 class RenderViewHost;
15 struct ViewHostMsg_FrameNavigate_Params; 15 struct ViewHostMsg_FrameNavigate_Params;
16 16
17 // An observer API implemented by classes which are interested in various page 17 // An observer API implemented by classes which are interested in various page
18 // load events from TabContents. They also get a chance to filter IPC messages. 18 // load events from TabContents. They also get a chance to filter IPC messages.
19 class CONTENT_EXPORT TabContentsObserver : public IPC::Channel::Listener, 19 class CONTENT_EXPORT TabContentsObserver : public IPC::Channel::Listener,
20 public IPC::Message::Sender { 20 public IPC::Message::Sender {
21 public: 21 public:
22 virtual void RenderViewCreated(RenderViewHost* render_view_host); 22 virtual void RenderViewCreated(RenderViewHost* render_view_host);
23 virtual void RenderViewDeleted(RenderViewHost* render_view_host); 23 virtual void RenderViewDeleted(RenderViewHost* render_view_host);
24 virtual void RenderViewReady(); 24 virtual void RenderViewReady();
25 virtual void RenderViewGone(); 25 virtual void RenderViewGone();
26 virtual void NavigateToPendingEntry( 26 virtual void NavigateToPendingEntry(
27 const GURL& url, 27 const GURL& url,
28 NavigationController::ReloadType reload_type); 28 NavigationController::ReloadType reload_type);
29 virtual void DidNavigateMainFramePostCommit( 29 virtual void DidNavigateMainFrame(
30 const content::LoadCommittedDetails& details, 30 const content::LoadCommittedDetails& details,
31 const ViewHostMsg_FrameNavigate_Params& params); 31 const ViewHostMsg_FrameNavigate_Params& params);
32 virtual void DidNavigateAnyFramePostCommit( 32 virtual void DidNavigateAnyFrame(
33 const content::LoadCommittedDetails& details, 33 const content::LoadCommittedDetails& details,
34 const ViewHostMsg_FrameNavigate_Params& params); 34 const ViewHostMsg_FrameNavigate_Params& params);
35 // |render_view_host| is the RenderViewHost for which the provisional load is 35 // |render_view_host| is the RenderViewHost for which the provisional load is
36 // happening. 36 // happening.
37 virtual void DidStartProvisionalLoadForFrame( 37 virtual void DidStartProvisionalLoadForFrame(
38 int64 frame_id, 38 int64 frame_id,
39 bool is_main_frame, 39 bool is_main_frame,
40 const GURL& validated_url, 40 const GURL& validated_url,
41 bool is_error_page, 41 bool is_error_page,
42 RenderViewHost* render_view_host); 42 RenderViewHost* render_view_host);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out 126 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out
127 // |tab_contents_|. 127 // |tab_contents_|.
128 void TabContentsDestroyed(); 128 void TabContentsDestroyed();
129 129
130 TabContents* tab_contents_; 130 TabContents* tab_contents_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); 132 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver);
133 }; 133 };
134 134
135 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 135 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698