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

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: fetch/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 virtual bool child_id(int* child_id) const;
cbentzel 2011/03/21 19:46:04 Since these are not simple getters, should probabl
dominich 2011/03/21 20:25:51 Done.
88 virtual bool route_id(int* route_id) const;
89
87 // Set the final status for how the PrerenderContents was used. This 90 // Set the final status for how the PrerenderContents was used. This
88 // should only be called once, and should be called before the prerender 91 // should only be called once, and should be called before the prerender
89 // contents are destroyed. 92 // contents are destroyed.
90 void set_final_status(FinalStatus final_status); 93 void set_final_status(FinalStatus final_status);
91 FinalStatus final_status() const; 94 FinalStatus final_status() const;
92 95
93 base::TimeTicks load_start_time() const { return load_start_time_; } 96 base::TimeTicks load_start_time() const { return load_start_time_; }
94 97
95 // Indicates whether this prerendered page can be used for the provided 98 // Indicates whether this prerendered page can be used for the provided
96 // URL, i.e. whether there is a match. 99 // 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, 271 // Maximum amount of private memory that may be used per PrerenderContents,
269 // in MB. 272 // in MB.
270 static const int kMaxPrerenderPrivateMB = 100; 273 static const int kMaxPrerenderPrivateMB = 100;
271 274
272 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 275 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
273 }; 276 };
274 277
275 } // prerender 278 } // prerender
276 279
277 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 280 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698