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

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

Issue 6625066: Add pending preloads indexed by routing id. Start preloading once we navigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 9 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) 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 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void set_render_view_host(RenderViewHost* rvh) { render_view_host_ = rvh; } 77 void set_render_view_host(RenderViewHost* rvh) { render_view_host_ = rvh; }
78 ViewHostMsg_FrameNavigate_Params* navigate_params() { 78 ViewHostMsg_FrameNavigate_Params* navigate_params() {
79 return navigate_params_.get(); 79 return navigate_params_.get();
80 } 80 }
81 string16 title() const { return title_; } 81 string16 title() const { return title_; }
82 int32 page_id() const { return page_id_; } 82 int32 page_id() const { return page_id_; }
83 GURL icon_url() const { return icon_url_; } 83 GURL icon_url() const { return icon_url_; }
84 bool has_stopped_loading() const { return has_stopped_loading_; } 84 bool has_stopped_loading() const { return has_stopped_loading_; }
85 bool prerendering_has_started() const { return prerendering_has_started_; } 85 bool prerendering_has_started() const { return prerendering_has_started_; }
86 86
87 // Sets the parameter to the value of the associated RenderViewHost's child id
88 // and returns a boolean indicating the validity of that id.
89 virtual bool GetChildId(int* child_id) const;
90
91 // Sets the parameter to the value of the associated RenderViewHost's route id
92 // and returns a boolean indicating the validity of that id.
93 virtual bool GetRouteId(int* route_id) const;
94
87 // Set the final status for how the PrerenderContents was used. This 95 // Set the final status for how the PrerenderContents was used. This
88 // should only be called once, and should be called before the prerender 96 // should only be called once, and should be called before the prerender
89 // contents are destroyed. 97 // contents are destroyed.
90 void set_final_status(FinalStatus final_status); 98 void set_final_status(FinalStatus final_status);
91 FinalStatus final_status() const; 99 FinalStatus final_status() const;
92 100
93 base::TimeTicks load_start_time() const { return load_start_time_; } 101 base::TimeTicks load_start_time() const { return load_start_time_; }
94 102
95 // Indicates whether this prerendered page can be used for the provided 103 // Indicates whether this prerendered page can be used for the provided
96 // URL, i.e. whether there is a match. 104 // URL, i.e. whether there is a match.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Maximum amount of private memory that may be used per PrerenderContents, 276 // Maximum amount of private memory that may be used per PrerenderContents,
269 // in MB. 277 // in MB.
270 static const int kMaxPrerenderPrivateMB = 100; 278 static const int kMaxPrerenderPrivateMB = 100;
271 279
272 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 280 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
273 }; 281 };
274 282
275 } // prerender 283 } // prerender
276 284
277 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 285 #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