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

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

Issue 6824054: PrerenderContents uses RESOURCE_RECEIVED_REDIRECT notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 const GURL& prerender_url() const { return prerender_url_; } 200 const GURL& prerender_url() const { return prerender_url_; }
201 201
202 private: 202 private:
203 // Needs to be able to call the constructor. 203 // Needs to be able to call the constructor.
204 friend class PrerenderContentsFactoryImpl; 204 friend class PrerenderContentsFactoryImpl;
205 205
206 // Message handlers. 206 // Message handlers.
207 void OnDidStartProvisionalLoadForFrame(int64 frame_id, 207 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
208 bool main_frame, 208 bool main_frame,
209 const GURL& url); 209 const GURL& url);
210 void OnDidRedirectProvisionalLoad(int32 page_id,
211 const GURL& source_url,
212 const GURL& target_url);
213 210
214 void OnUpdateFaviconURL(int32 page_id, const GURL& icon_url); 211 void OnUpdateFaviconURL(int32 page_id, const GURL& icon_url);
215 212
216 void OnMaybeCancelPrerender(PrerenderCancellationReason reason); 213 void OnMaybeCancelPrerender(PrerenderCancellationReason reason);
217 214
218 // Adds an alias URL, for one of the many redirections. Returns whether 215 // Adds an alias URL, for one of the many redirections. Returns whether
219 // the URL is valid. 216 // the URL is valid.
220 bool AddAliasURL(const GURL& url); 217 bool AddAliasURL(const GURL& url);
221 218
222 // Remove |this| from the PrerenderManager, set a final status, and 219 // Remove |this| from the PrerenderManager, set a final status, and
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Maximum amount of private memory that may be used per PrerenderContents, 278 // Maximum amount of private memory that may be used per PrerenderContents,
282 // in MB. 279 // in MB.
283 static const int kMaxPrerenderPrivateMB = 100; 280 static const int kMaxPrerenderPrivateMB = 100;
284 281
285 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 282 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
286 }; 283 };
287 284
288 } // prerender 285 } // prerender
289 286
290 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 287 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698