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

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

Issue 8603015: Get rid of a bunch of view_messages.h includes from chrome by making the TabContentsObserver inte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux and try to fix mac again 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 "base/process_util.h" 8 #include "base/process_util.h"
9 #include "content/browser/tab_contents/navigation_controller.h" 9 #include "content/browser/tab_contents/navigation_controller.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/public/common/page_transition_types.h" 11 #include "content/public/common/page_transition_types.h"
12 #include "ipc/ipc_channel.h" 12 #include "ipc/ipc_channel.h"
13 #include "webkit/glue/window_open_disposition.h" 13 #include "webkit/glue/window_open_disposition.h"
14 14
15 class RenderViewHost; 15 class RenderViewHost;
16 struct ViewHostMsg_FrameNavigate_Params; 16
17 namespace content {
18 struct FrameNavigateParams;
19 }
17 20
18 // An observer API implemented by classes which are interested in various page 21 // An observer API implemented by classes which are interested in various page
19 // load events from TabContents. They also get a chance to filter IPC messages. 22 // load events from TabContents. They also get a chance to filter IPC messages.
20 class CONTENT_EXPORT TabContentsObserver : public IPC::Channel::Listener, 23 class CONTENT_EXPORT TabContentsObserver : public IPC::Channel::Listener,
21 public IPC::Message::Sender { 24 public IPC::Message::Sender {
22 public: 25 public:
23 virtual void RenderViewCreated(RenderViewHost* render_view_host); 26 virtual void RenderViewCreated(RenderViewHost* render_view_host);
24 virtual void RenderViewDeleted(RenderViewHost* render_view_host); 27 virtual void RenderViewDeleted(RenderViewHost* render_view_host);
25 virtual void RenderViewReady(); 28 virtual void RenderViewReady();
26 virtual void RenderViewGone(base::TerminationStatus status); 29 virtual void RenderViewGone(base::TerminationStatus status);
27 virtual void NavigateToPendingEntry( 30 virtual void NavigateToPendingEntry(
28 const GURL& url, 31 const GURL& url,
29 NavigationController::ReloadType reload_type); 32 NavigationController::ReloadType reload_type);
30 virtual void DidNavigateMainFrame( 33 virtual void DidNavigateMainFrame(
31 const content::LoadCommittedDetails& details, 34 const content::LoadCommittedDetails& details,
32 const ViewHostMsg_FrameNavigate_Params& params); 35 const content::FrameNavigateParams& params);
33 virtual void DidNavigateAnyFrame( 36 virtual void DidNavigateAnyFrame(
34 const content::LoadCommittedDetails& details, 37 const content::LoadCommittedDetails& details,
35 const ViewHostMsg_FrameNavigate_Params& params); 38 const content::FrameNavigateParams& params);
36 // |render_view_host| is the RenderViewHost for which the provisional load is 39 // |render_view_host| is the RenderViewHost for which the provisional load is
37 // happening. 40 // happening.
38 virtual void DidStartProvisionalLoadForFrame( 41 virtual void DidStartProvisionalLoadForFrame(
39 int64 frame_id, 42 int64 frame_id,
40 bool is_main_frame, 43 bool is_main_frame,
41 const GURL& validated_url, 44 const GURL& validated_url,
42 bool is_error_page, 45 bool is_error_page,
43 RenderViewHost* render_view_host); 46 RenderViewHost* render_view_host);
44 virtual void ProvisionalChangeToMainFrameUrl(const GURL& url, 47 virtual void ProvisionalChangeToMainFrameUrl(const GURL& url,
45 const GURL& opener_url); 48 const GURL& opener_url);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out 131 // Invoked from TabContents. Invokes TabContentsDestroyed and NULL out
129 // |tab_contents_|. 132 // |tab_contents_|.
130 void TabContentsDestroyed(); 133 void TabContentsDestroyed();
131 134
132 TabContents* tab_contents_; 135 TabContents* tab_contents_;
133 136
134 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); 137 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver);
135 }; 138 };
136 139
137 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 140 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_browsertest.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