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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 | 433 |
434 void set_swap_successful(bool swap_successful) { | 434 void set_swap_successful(bool swap_successful) { |
435 swap_successful_ = swap_successful; | 435 swap_successful_ = swap_successful; |
436 } | 436 } |
437 | 437 |
438 void BeginSwap(); | 438 void BeginSwap(); |
439 | 439 |
440 // content::WebContentsObserver implementation. | 440 // content::WebContentsObserver implementation. |
441 virtual void ProvisionalChangeToMainFrameUrl( | 441 virtual void ProvisionalChangeToMainFrameUrl( |
442 const GURL& url, | 442 const GURL& url, |
443 content::RenderViewHost* render_view_host) OVERRIDE; | 443 content::RenderFrameHost* render_frame_host) OVERRIDE; |
444 virtual void DidCommitProvisionalLoadForFrame( | 444 virtual void DidCommitProvisionalLoadForFrame( |
445 int64 frame_id, | 445 int64 frame_id, |
446 const base::string16& frame_unique_name, | 446 const base::string16& frame_unique_name, |
447 bool is_main_frame, | 447 bool is_main_frame, |
448 const GURL& validated_url, | 448 const GURL& validated_url, |
449 content::PageTransition transition_type, | 449 content::PageTransition transition_type, |
450 content::RenderViewHost* render_view_host) OVERRIDE; | 450 content::RenderViewHost* render_view_host) OVERRIDE; |
451 virtual void RenderViewCreated( | 451 virtual void RenderViewCreated( |
452 content::RenderViewHost* render_view_host) OVERRIDE; | 452 content::RenderViewHost* render_view_host) OVERRIDE; |
453 virtual void DidFailProvisionalLoad( | 453 virtual void DidFailProvisionalLoad( |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 | 751 |
752 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); | 752 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); |
753 }; | 753 }; |
754 | 754 |
755 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( | 755 PrerenderManager* FindPrerenderManagerUsingRenderProcessId( |
756 int render_process_id); | 756 int render_process_id); |
757 | 757 |
758 } // namespace prerender | 758 } // namespace prerender |
759 | 759 |
760 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ | 760 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ |
OLD | NEW |