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

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

Issue 7015026: Cancel prerenders for pages that call window.print() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 7 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // Needs to be able to call the constructor. 263 // Needs to be able to call the constructor.
264 friend class PrerenderContentsFactoryImpl; 264 friend class PrerenderContentsFactoryImpl;
265 265
266 friend class PrerenderRenderViewHostObserver; 266 friend class PrerenderRenderViewHostObserver;
267 267
268 // Message handlers. 268 // Message handlers.
269 void OnDidStartProvisionalLoadForFrame(int64 frame_id, 269 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
270 bool main_frame, 270 bool main_frame,
271 const GURL& url); 271 const GURL& url);
272 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls); 272 void OnUpdateFaviconURL(int32 page_id, const std::vector<FaviconURL>& urls);
273 void OnMaybeCancelPrerenderForHTML5Media();
274 273
275 // Returns the RenderViewHost Delegate for this prerender. 274 // Returns the RenderViewHost Delegate for this prerender.
276 RenderViewHostDelegate* GetRenderViewHostDelegate(); 275 RenderViewHostDelegate* GetRenderViewHostDelegate();
277 276
278 // Returns the ProcessMetrics for the render process, if it exists. 277 // Returns the ProcessMetrics for the render process, if it exists.
279 base::ProcessMetrics* MaybeGetProcessMetrics(); 278 base::ProcessMetrics* MaybeGetProcessMetrics();
280 279
281 // The prerender manager owning this object. 280 // The prerender manager owning this object.
282 PrerenderManager* prerender_manager_; 281 PrerenderManager* prerender_manager_;
283 282
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 scoped_ptr<TabContentsWrapper> prerender_contents_; 334 scoped_ptr<TabContentsWrapper> prerender_contents_;
336 335
337 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_; 336 scoped_ptr<PrerenderRenderViewHostObserver> render_view_host_observer_;
338 337
339 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 338 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
340 }; 339 };
341 340
342 } // namespace prerender 341 } // namespace prerender
343 342
344 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 343 #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