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

Side by Side Diff: chrome/browser/prerender/prerender_contents.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_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 base::TimeTicks load_start_time() const { return load_start_time_; } 158 base::TimeTicks load_start_time() const { return load_start_time_; }
159 159
160 // Indicates whether this prerendered page can be used for the provided 160 // Indicates whether this prerendered page can be used for the provided
161 // |url| and |session_storage_namespace|. 161 // |url| and |session_storage_namespace|.
162 bool Matches( 162 bool Matches(
163 const GURL& url, 163 const GURL& url,
164 const content::SessionStorageNamespace* session_storage_namespace) const; 164 const content::SessionStorageNamespace* session_storage_namespace) const;
165 165
166 // content::WebContentsObserver implementation. 166 // content::WebContentsObserver implementation.
167 virtual void DidStopLoading() OVERRIDE; 167 virtual void DidStopLoading(
168 content::RenderViewHost* render_view_host) OVERRIDE;
168 virtual void DidStartProvisionalLoadForFrame( 169 virtual void DidStartProvisionalLoadForFrame(
169 int64 frame_id, 170 int64 frame_id,
170 bool is_main_frame, 171 bool is_main_frame,
171 const GURL& validated_url, 172 const GURL& validated_url,
172 bool is_error_page, 173 bool is_error_page,
173 content::RenderViewHost* render_view_host) OVERRIDE; 174 content::RenderViewHost* render_view_host) OVERRIDE;
174 virtual void DidFinishLoad( 175 virtual void DidFinishLoad(
175 int64 frame_id, 176 int64 frame_id,
176 const GURL& validated_url, 177 const GURL& validated_url,
177 bool is_main_frame, 178 bool is_main_frame,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 382
382 // The size of the WebView from the launching page. 383 // The size of the WebView from the launching page.
383 gfx::Size size_; 384 gfx::Size size_;
384 385
385 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 386 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
386 }; 387 };
387 388
388 } // namespace prerender 389 } // namespace prerender
389 390
390 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 391 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698