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

Side by Side Diff: chrome/browser/prerender/prerender_tab_helper.h

Issue 10805051: Add RenderViewHost* to DidStartLoading and DidStopLoading in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 10 matching lines...) Expand all
21 class PrerenderTabHelper : public content::WebContentsObserver { 21 class PrerenderTabHelper : public content::WebContentsObserver {
22 public: 22 public:
23 explicit PrerenderTabHelper(TabContents* tab); 23 explicit PrerenderTabHelper(TabContents* tab);
24 virtual ~PrerenderTabHelper(); 24 virtual ~PrerenderTabHelper();
25 25
26 // content::WebContentsObserver implementation. 26 // content::WebContentsObserver implementation.
27 virtual void ProvisionalChangeToMainFrameUrl( 27 virtual void ProvisionalChangeToMainFrameUrl(
28 const GURL& url, 28 const GURL& url,
29 const GURL& opener_url, 29 const GURL& opener_url,
30 content::RenderViewHost* render_view_host) OVERRIDE; 30 content::RenderViewHost* render_view_host) OVERRIDE;
31 virtual void DidStopLoading() OVERRIDE; 31 virtual void DidStopLoading(
32 content::RenderViewHost* render_view_host) OVERRIDE;
32 virtual void DidStartProvisionalLoadForFrame( 33 virtual void DidStartProvisionalLoadForFrame(
33 int64 frame_id, 34 int64 frame_id,
34 bool is_main_frame, 35 bool is_main_frame,
35 const GURL& validated_url, 36 const GURL& validated_url,
36 bool is_error_page, 37 bool is_error_page,
37 content::RenderViewHost* render_view_host) OVERRIDE; 38 content::RenderViewHost* render_view_host) OVERRIDE;
38 virtual void DidCommitProvisionalLoadForFrame( 39 virtual void DidCommitProvisionalLoadForFrame(
39 int64 frame_id, 40 int64 frame_id,
40 bool is_main_frame, 41 bool is_main_frame,
41 const GURL& validated_url, 42 const GURL& validated_url,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 // Current URL being loaded. 76 // Current URL being loaded.
76 GURL url_; 77 GURL url_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper); 79 DISALLOW_COPY_AND_ASSIGN(PrerenderTabHelper);
79 }; 80 };
80 81
81 } // namespace prerender 82 } // namespace prerender
82 83
83 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_ 84 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698