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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 | 470 |
471 void set_swap_successful(bool swap_successful) { | 471 void set_swap_successful(bool swap_successful) { |
472 swap_successful_ = swap_successful; | 472 swap_successful_ = swap_successful; |
473 } | 473 } |
474 | 474 |
475 void BeginSwap(); | 475 void BeginSwap(); |
476 | 476 |
477 // content::WebContentsObserver implementation. | 477 // content::WebContentsObserver implementation. |
478 virtual void AboutToNavigateRenderView( | 478 virtual void AboutToNavigateRenderView( |
479 content::RenderViewHost* render_view_host) OVERRIDE; | 479 content::RenderViewHost* render_view_host) OVERRIDE; |
480 virtual void ProvisionalChangeToMainFrameUrl( | |
481 const GURL& url, | |
482 content::RenderFrameHost* render_frame_host) OVERRIDE; | |
483 virtual void DidCommitProvisionalLoadForFrame( | 480 virtual void DidCommitProvisionalLoadForFrame( |
484 content::RenderFrameHost* render_frame_host, | 481 content::RenderFrameHost* render_frame_host, |
485 const GURL& validated_url, | 482 const GURL& validated_url, |
486 content::PageTransition transition_type) OVERRIDE; | 483 content::PageTransition transition_type) OVERRIDE; |
487 virtual void DidFailProvisionalLoad( | 484 virtual void DidFailProvisionalLoad( |
488 content::RenderFrameHost* render_frame_host, | 485 content::RenderFrameHost* render_frame_host, |
489 const GURL& validated_url, | 486 const GURL& validated_url, |
490 int error_code, | 487 int error_code, |
491 const base::string16& error_description) OVERRIDE; | 488 const base::string16& error_description) OVERRIDE; |
492 virtual void WebContentsDestroyed() OVERRIDE; | 489 virtual void WebContentsDestroyed() OVERRIDE; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 bool cookie_store_loaded_; | 732 bool cookie_store_loaded_; |
736 | 733 |
737 base::Closure on_cookie_store_loaded_cb_for_testing_; | 734 base::Closure on_cookie_store_loaded_cb_for_testing_; |
738 | 735 |
739 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 736 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
740 }; | 737 }; |
741 | 738 |
742 } // namespace prerender | 739 } // namespace prerender |
743 | 740 |
744 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 741 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
OLD | NEW |