OLD | NEW |
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 Loading... |
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 content::PageTransition transition_type) OVERRIDE; | 487 ui::PageTransition transition_type) OVERRIDE; |
488 virtual void DidFailProvisionalLoad( | 488 virtual void DidFailProvisionalLoad( |
489 content::RenderFrameHost* render_frame_host, | 489 content::RenderFrameHost* render_frame_host, |
490 const GURL& validated_url, | 490 const GURL& validated_url, |
491 int error_code, | 491 int error_code, |
492 const base::string16& error_description) OVERRIDE; | 492 const base::string16& error_description) OVERRIDE; |
493 virtual void WebContentsDestroyed() OVERRIDE; | 493 virtual void WebContentsDestroyed() OVERRIDE; |
494 | 494 |
495 private: | 495 private: |
496 void RecordEvent(PrerenderEvent event) const; | 496 void RecordEvent(PrerenderEvent event) const; |
497 | 497 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 bool cookie_store_loaded_; | 736 bool cookie_store_loaded_; |
737 | 737 |
738 base::Closure on_cookie_store_loaded_cb_for_testing_; | 738 base::Closure on_cookie_store_loaded_cb_for_testing_; |
739 | 739 |
740 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 740 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
741 }; | 741 }; |
742 | 742 |
743 } // namespace prerender | 743 } // namespace prerender |
744 | 744 |
745 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 745 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
OLD | NEW |