OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/navigation_controller.h" |
10 #include "content/public/browser/navigation_details.h" | 10 #include "content/public/browser/navigation_details.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 struct LoadCommittedDetails; | 14 struct LoadCommittedDetails; |
15 struct LoadNotificationDetails; | 15 struct LoadNotificationDetails; |
16 struct NativeWebKeyboardEvent; | 16 struct NativeWebKeyboardEvent; |
17 class InterstitialPage; | 17 class InterstitialPage; |
18 class InterstitialPageImpl; | 18 class InterstitialPageImpl; |
19 class RenderFrameHost; | |
19 class RenderViewHost; | 20 class RenderViewHost; |
20 class SiteInstance; | 21 class SiteInstance; |
21 class WebContents; | 22 class WebContents; |
22 class WebContentsDelegate; | 23 class WebContentsDelegate; |
23 | 24 |
24 // Interface for objects embedding a NavigationController to provide the | 25 // Interface for objects embedding a NavigationController to provide the |
25 // functionality NavigationController needs. | 26 // functionality NavigationController needs. |
26 // TODO(nasko): This interface should exist for short amount of time, while | 27 // TODO(nasko): This interface should exist for short amount of time, while |
27 // we transition navigation code from WebContents to Navigator. | 28 // we transition navigation code from WebContents to Navigator. |
28 class NavigationControllerDelegate { | 29 class NavigationControllerDelegate { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 // Methods needed by InterstitialPageImpl. | 66 // Methods needed by InterstitialPageImpl. |
66 virtual bool IsHidden() = 0; | 67 virtual bool IsHidden() = 0; |
67 virtual void RenderViewForInterstitialPageCreated( | 68 virtual void RenderViewForInterstitialPageCreated( |
68 RenderViewHost* render_view_host) = 0; | 69 RenderViewHost* render_view_host) = 0; |
69 virtual void AttachInterstitialPage( | 70 virtual void AttachInterstitialPage( |
70 InterstitialPageImpl* interstitial_page) = 0; | 71 InterstitialPageImpl* interstitial_page) = 0; |
71 virtual void DetachInterstitialPage() = 0; | 72 virtual void DetachInterstitialPage() = 0; |
72 virtual void SetIsLoading(RenderViewHost* render_view_host, | 73 virtual void SetIsLoading(RenderViewHost* render_view_host, |
73 bool is_loading, | 74 bool is_loading, |
74 LoadNotificationDetails* details) = 0; | 75 LoadNotificationDetails* details) = 0; |
76 | |
77 // Actual navigation delegates. | |
Charlie Reis
2013/11/07 01:22:43
What does this mean?
| |
78 virtual void DidStartProvisionalLoad( | |
79 int64 frame_id, | |
80 int64 parent_frame_id, | |
81 bool is_main_frame, | |
82 const GURL& validated_url, | |
83 bool is_error_page, | |
84 bool is_iframe_srcdoc, | |
85 RenderFrameHost* render_frame_host) = 0; | |
86 virtual void ProvisionalChangeToMainFrameUrl( | |
87 const GURL& url, | |
88 RenderFrameHost* render_frame_host) = 0; | |
75 }; | 89 }; |
76 | 90 |
77 } // namespace content | 91 } // namespace content |
78 | 92 |
79 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 93 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
OLD | NEW |