| 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/memory/scoped_vector.h" |
| 8 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 9 #include "content/public/browser/invalidate_type.h" | 10 #include "content/public/browser/invalidate_type.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
| 12 #include "content/public/browser/navigation_throttle.h" |
| 11 #include "content/public/browser/reload_type.h" | 13 #include "content/public/browser/reload_type.h" |
| 12 #include "ui/base/page_transition_types.h" | 14 #include "ui/base/page_transition_types.h" |
| 13 #include "ui/base/window_open_disposition.h" | 15 #include "ui/base/window_open_disposition.h" |
| 14 | 16 |
| 15 class GURL; | 17 class GURL; |
| 16 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 18 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 19 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 18 | 20 |
| 19 namespace content { | 21 namespace content { |
| 20 | 22 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // navigation, or triggered by history.pushState/replaceState. | 127 // navigation, or triggered by history.pushState/replaceState. |
| 126 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, | 128 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, |
| 127 bool to_different_document) {} | 129 bool to_different_document) {} |
| 128 | 130 |
| 129 // A document stopped loading. This corresponds to Blink's notion of the | 131 // A document stopped loading. This corresponds to Blink's notion of the |
| 130 // throbber stopping. | 132 // throbber stopping. |
| 131 virtual void DidStopLoading() {} | 133 virtual void DidStopLoading() {} |
| 132 | 134 |
| 133 // The load progress was changed. | 135 // The load progress was changed. |
| 134 virtual void DidChangeLoadProgress() {} | 136 virtual void DidChangeLoadProgress() {} |
| 137 |
| 138 // Returns the NavigationThrottles to add to this navigation. Normally these |
| 139 // are defined by the content/ embedder, except in the case of interstitials |
| 140 // where no NavigationThrottles are added to the navigation. |
| 141 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( |
| 142 NavigationHandle* navigation_handle); |
| 135 }; | 143 }; |
| 136 | 144 |
| 137 } // namspace content | 145 } // namspace content |
| 138 | 146 |
| 139 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 147 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| OLD | NEW |