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

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

Issue 373623002: Convert remaining WebContentsObservers loading callbacks to use RFH. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one more compile error Created 6 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 bool Matches( 203 bool Matches(
204 const GURL& url, 204 const GURL& url,
205 const content::SessionStorageNamespace* session_storage_namespace) const; 205 const content::SessionStorageNamespace* session_storage_namespace) const;
206 206
207 // content::WebContentsObserver implementation. 207 // content::WebContentsObserver implementation.
208 virtual void RenderFrameCreated( 208 virtual void RenderFrameCreated(
209 content::RenderFrameHost* render_frame_host) OVERRIDE; 209 content::RenderFrameHost* render_frame_host) OVERRIDE;
210 virtual void DidStopLoading( 210 virtual void DidStopLoading(
211 content::RenderViewHost* render_view_host) OVERRIDE; 211 content::RenderViewHost* render_view_host) OVERRIDE;
212 virtual void DocumentLoadedInFrame( 212 virtual void DocumentLoadedInFrame(
213 int64 frame_id, content::RenderViewHost* render_view_host) OVERRIDE; 213 content::RenderFrameHost* render_frame_host) OVERRIDE;
214 virtual void DidStartProvisionalLoadForFrame( 214 virtual void DidStartProvisionalLoadForFrame(
215 content::RenderFrameHost* render_frame_host, 215 content::RenderFrameHost* render_frame_host,
216 const GURL& validated_url, 216 const GURL& validated_url,
217 bool is_error_page, 217 bool is_error_page,
218 bool is_iframe_srcdoc) OVERRIDE; 218 bool is_iframe_srcdoc) OVERRIDE;
219 virtual void DidCommitProvisionalLoadForFrame( 219 virtual void DidFinishLoad(content::RenderFrameHost* render_frame_host,
220 content::RenderFrameHost* render_frame_host, 220 const GURL& validated_url) OVERRIDE;
221 const GURL& url,
222 content::PageTransition transition_type) OVERRIDE;
223 virtual void DidFinishLoad(
224 int64 frame_id,
225 const GURL& validated_url,
226 bool is_main_frame,
227 content::RenderViewHost* render_view_host) OVERRIDE;
228 virtual void DidNavigateMainFrame( 221 virtual void DidNavigateMainFrame(
229 const content::LoadCommittedDetails& details, 222 const content::LoadCommittedDetails& details,
230 const content::FrameNavigateParams& params) OVERRIDE; 223 const content::FrameNavigateParams& params) OVERRIDE;
231 virtual void DidGetRedirectForResourceRequest( 224 virtual void DidGetRedirectForResourceRequest(
232 content::RenderViewHost* render_view_host, 225 content::RenderViewHost* render_view_host,
233 const content::ResourceRedirectDetails& details) OVERRIDE; 226 const content::ResourceRedirectDetails& details) OVERRIDE;
234 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 227 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
235 228
236 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; 229 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
237 230
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 430
438 // Origin for this prerender. 431 // Origin for this prerender.
439 Origin origin_; 432 Origin origin_;
440 433
441 // Experiment during which this prerender is performed. 434 // Experiment during which this prerender is performed.
442 uint8 experiment_id_; 435 uint8 experiment_id_;
443 436
444 // The process that created the child id. 437 // The process that created the child id.
445 int creator_child_id_; 438 int creator_child_id_;
446 439
447 // Main frame ID of last committed page.
448 int64 main_frame_id_;
449
450 // The size of the WebView from the launching page. 440 // The size of the WebView from the launching page.
451 gfx::Size size_; 441 gfx::Size size_;
452 442
453 typedef std::vector<history::HistoryAddPageArgs> AddPageVector; 443 typedef std::vector<history::HistoryAddPageArgs> AddPageVector;
454 444
455 // Caches pages to be added to the history. 445 // Caches pages to be added to the history.
456 AddPageVector add_page_vector_; 446 AddPageVector add_page_vector_;
457 447
458 // The alias session storage namespace for this prerender. 448 // The alias session storage namespace for this prerender.
459 scoped_refptr<content::SessionStorageNamespace> 449 scoped_refptr<content::SessionStorageNamespace>
(...skipping 15 matching lines...) Expand all
475 // A running tally of the number of bytes this prerender has caused to be 465 // A running tally of the number of bytes this prerender has caused to be
476 // transferred over the network for resources. Updated with AddNetworkBytes. 466 // transferred over the network for resources. Updated with AddNetworkBytes.
477 int64 network_bytes_; 467 int64 network_bytes_;
478 468
479 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 469 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
480 }; 470 };
481 471
482 } // namespace prerender 472 } // namespace prerender
483 473
484 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 474 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698