| 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( | 480 virtual void DidGetRedirectForResourceRequest( |
| 481 const GURL& url, | 481 content::RenderViewHost* render_view_host, |
| 482 content::RenderFrameHost* render_frame_host) OVERRIDE; | 482 const content::ResourceRedirectDetails& details) OVERRIDE; |
| 483 virtual void DidCommitProvisionalLoadForFrame( | 483 virtual void DidCommitProvisionalLoadForFrame( |
| 484 content::RenderFrameHost* render_frame_host, | 484 content::RenderFrameHost* render_frame_host, |
| 485 const GURL& validated_url, | 485 const GURL& validated_url, |
| 486 content::PageTransition transition_type) OVERRIDE; | 486 content::PageTransition transition_type) OVERRIDE; |
| 487 virtual void DidFailProvisionalLoad( | 487 virtual void DidFailProvisionalLoad( |
| 488 content::RenderFrameHost* render_frame_host, | 488 content::RenderFrameHost* render_frame_host, |
| 489 const GURL& validated_url, | 489 const GURL& validated_url, |
| 490 int error_code, | 490 int error_code, |
| 491 const base::string16& error_description) OVERRIDE; | 491 const base::string16& error_description) OVERRIDE; |
| 492 virtual void WebContentsDestroyed() OVERRIDE; | 492 virtual void WebContentsDestroyed() OVERRIDE; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 bool cookie_store_loaded_; | 735 bool cookie_store_loaded_; |
| 736 | 736 |
| 737 base::Closure on_cookie_store_loaded_cb_for_testing_; | 737 base::Closure on_cookie_store_loaded_cb_for_testing_; |
| 738 | 738 |
| 739 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 739 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
| 740 }; | 740 }; |
| 741 | 741 |
| 742 } // namespace prerender | 742 } // namespace prerender |
| 743 | 743 |
| 744 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 744 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
| OLD | NEW |