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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 | 471 |
472 void set_swap_successful(bool swap_successful) { | 472 void set_swap_successful(bool swap_successful) { |
473 swap_successful_ = swap_successful; | 473 swap_successful_ = swap_successful; |
474 } | 474 } |
475 | 475 |
476 void BeginSwap(); | 476 void BeginSwap(); |
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 DidStartProvisionalLoadForFrame( |
482 const GURL& url, | 482 content::RenderFrameHost* render_frame_host, |
483 content::RenderFrameHost* render_frame_host) OVERRIDE; | 483 const GURL& validated_url, |
| 484 bool is_error_page, |
| 485 bool is_iframe_srcdoc) OVERRIDE; |
484 virtual void DidCommitProvisionalLoadForFrame( | 486 virtual void DidCommitProvisionalLoadForFrame( |
485 content::RenderFrameHost* render_frame_host, | 487 content::RenderFrameHost* render_frame_host, |
486 const GURL& validated_url, | 488 const GURL& validated_url, |
487 ui::PageTransition transition_type) OVERRIDE; | 489 ui::PageTransition transition_type) OVERRIDE; |
488 virtual void DidFailProvisionalLoad( | 490 virtual void DidFailProvisionalLoad( |
489 content::RenderFrameHost* render_frame_host, | 491 content::RenderFrameHost* render_frame_host, |
490 const GURL& validated_url, | 492 const GURL& validated_url, |
491 int error_code, | 493 int error_code, |
492 const base::string16& error_description) OVERRIDE; | 494 const base::string16& error_description) OVERRIDE; |
493 virtual void WebContentsDestroyed() OVERRIDE; | 495 virtual void WebContentsDestroyed() OVERRIDE; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 bool cookie_store_loaded_; | 738 bool cookie_store_loaded_; |
737 | 739 |
738 base::Closure on_cookie_store_loaded_cb_for_testing_; | 740 base::Closure on_cookie_store_loaded_cb_for_testing_; |
739 | 741 |
740 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 742 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
741 }; | 743 }; |
742 | 744 |
743 } // namespace prerender | 745 } // namespace prerender |
744 | 746 |
745 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 747 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
OLD | NEW |