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_NAVIGATOR_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "content/public/browser/invalidate_type.h" | 9 #include "content/public/browser/invalidate_type.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| 11 #include "content/public/browser/reload_type.h" |
11 #include "ui/base/page_transition_types.h" | 12 #include "ui/base/page_transition_types.h" |
12 #include "ui/base/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
13 | 14 |
14 class GURL; | 15 class GURL; |
15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 16 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 | 20 |
20 class FrameTreeNode; | 21 class FrameTreeNode; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual void SetMainFrameMimeType(const std::string& mime_type) {} | 96 virtual void SetMainFrameMimeType(const std::string& mime_type) {} |
96 virtual bool CanOverscrollContent() const; | 97 virtual bool CanOverscrollContent() const; |
97 | 98 |
98 // Notification to the Navigator embedder that navigation state has | 99 // Notification to the Navigator embedder that navigation state has |
99 // changed. This method corresponds to | 100 // changed. This method corresponds to |
100 // WebContents::NotifyNavigationStateChanged. | 101 // WebContents::NotifyNavigationStateChanged. |
101 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} | 102 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} |
102 | 103 |
103 // Notifies the Navigator embedder that a navigation to the pending | 104 // Notifies the Navigator embedder that a navigation to the pending |
104 // NavigationEntry has started in the browser process. | 105 // NavigationEntry has started in the browser process. |
105 virtual void DidStartNavigationToPendingEntry( | 106 virtual void DidStartNavigationToPendingEntry(const GURL& url, |
106 const GURL& url, | 107 ReloadType reload_type) {} |
107 NavigationController::ReloadType reload_type) {} | |
108 | 108 |
109 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which | 109 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which |
110 // this forwards to. | 110 // this forwards to. |
111 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 111 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
112 const OpenURLParams& params) {} | 112 const OpenURLParams& params) {} |
113 | 113 |
114 // Returns whether to continue a navigation that needs to transfer to a | 114 // Returns whether to continue a navigation that needs to transfer to a |
115 // different process between the load start and commit. | 115 // different process between the load start and commit. |
116 virtual bool ShouldTransferNavigation(); | 116 virtual bool ShouldTransferNavigation(); |
117 | 117 |
(...skipping 12 matching lines...) Expand all Loading... |
130 // throbber stopping. | 130 // throbber stopping. |
131 virtual void DidStopLoading() {} | 131 virtual void DidStopLoading() {} |
132 | 132 |
133 // The load progress was changed. | 133 // The load progress was changed. |
134 virtual void DidChangeLoadProgress() {} | 134 virtual void DidChangeLoadProgress() {} |
135 }; | 135 }; |
136 | 136 |
137 } // namspace content | 137 } // namspace content |
138 | 138 |
139 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 139 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |