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

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

Issue 580133002: Update entry page type to include error pages when appropriate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix for unit_tests Created 6 years, 3 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
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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 // content::WebContentsObserver implementation. 478 // content::WebContentsObserver implementation.
479 virtual void AboutToNavigateRenderView( 479 virtual void AboutToNavigateRenderView(
480 content::RenderViewHost* render_view_host) OVERRIDE; 480 content::RenderViewHost* render_view_host) OVERRIDE;
481 virtual void ProvisionalChangeToMainFrameUrl( 481 virtual void ProvisionalChangeToMainFrameUrl(
482 const GURL& url, 482 const GURL& url,
483 content::RenderFrameHost* render_frame_host) OVERRIDE; 483 content::RenderFrameHost* render_frame_host) OVERRIDE;
484 virtual void DidCommitProvisionalLoadForFrame( 484 virtual void DidCommitProvisionalLoadForFrame(
485 content::RenderFrameHost* render_frame_host, 485 content::RenderFrameHost* render_frame_host,
486 const GURL& validated_url, 486 const GURL& validated_url,
487 bool url_is_unreachable,
487 ui::PageTransition transition_type) OVERRIDE; 488 ui::PageTransition transition_type) OVERRIDE;
488 virtual void DidFailProvisionalLoad( 489 virtual void DidFailProvisionalLoad(
489 content::RenderFrameHost* render_frame_host, 490 content::RenderFrameHost* render_frame_host,
490 const GURL& validated_url, 491 const GURL& validated_url,
491 int error_code, 492 int error_code,
492 const base::string16& error_description) OVERRIDE; 493 const base::string16& error_description) OVERRIDE;
493 virtual void WebContentsDestroyed() OVERRIDE; 494 virtual void WebContentsDestroyed() OVERRIDE;
494 495
495 private: 496 private:
496 void RecordEvent(PrerenderEvent event) const; 497 void RecordEvent(PrerenderEvent event) const;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 bool cookie_store_loaded_; 737 bool cookie_store_loaded_;
737 738
738 base::Closure on_cookie_store_loaded_cb_for_testing_; 739 base::Closure on_cookie_store_loaded_cb_for_testing_;
739 740
740 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 741 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
741 }; 742 };
742 743
743 } // namespace prerender 744 } // namespace prerender
744 745
745 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 746 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698