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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // If this method returns false, then the navigation is discarded (equivalent | 81 // If this method returns false, then the navigation is discarded (equivalent |
82 // to calling DiscardPendingEntry on the NavigationController). | 82 // to calling DiscardPendingEntry on the NavigationController). |
83 // | 83 // |
84 // TODO(nasko): Remove this method from the interface, since Navigator and | 84 // TODO(nasko): Remove this method from the interface, since Navigator and |
85 // NavigationController know about each other. This will be possible once | 85 // NavigationController know about each other. This will be possible once |
86 // initialization of Navigator and NavigationController is properly done. | 86 // initialization of Navigator and NavigationController is properly done. |
87 virtual bool NavigateToPendingEntry( | 87 virtual bool NavigateToPendingEntry( |
88 FrameTreeNode* frame_tree_node, | 88 FrameTreeNode* frame_tree_node, |
89 NavigationController::ReloadType reload_type); | 89 NavigationController::ReloadType reload_type); |
90 | 90 |
| 91 // A RenderFrame in the specified |frame_tree_node| started loading a new |
| 92 // document. This correponds to Blink's notion of the throbber starting. |
| 93 // |to_different_document| will be true unless the load is a fragment |
| 94 // navigation, or triggered by history.pushState/replaceState. |
| 95 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, |
| 96 bool to_different_document) {} |
| 97 |
| 98 // A document stopped loading. This corresponds to Blink's notion of the |
| 99 // throbber stopping. |
| 100 virtual void DidStopLoading() {} |
| 101 |
| 102 // The load progress was changed. |
| 103 virtual void DidChangeLoadProgress() {} |
91 | 104 |
92 // Navigation requests ------------------------------------------------------- | 105 // Navigation requests ------------------------------------------------------- |
93 | 106 |
94 virtual base::TimeTicks GetCurrentLoadStart(); | 107 virtual base::TimeTicks GetCurrentLoadStart(); |
95 | 108 |
96 // The RenderFrameHostImpl has received a request to open a URL with the | 109 // The RenderFrameHostImpl has received a request to open a URL with the |
97 // specified |disposition|. | 110 // specified |disposition|. |
98 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 111 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
99 const GURL& url, | 112 const GURL& url, |
100 SiteInstance* source_site_instance, | 113 SiteInstance* source_site_instance, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); | 181 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); |
169 | 182 |
170 protected: | 183 protected: |
171 friend class base::RefCounted<Navigator>; | 184 friend class base::RefCounted<Navigator>; |
172 virtual ~Navigator() {} | 185 virtual ~Navigator() {} |
173 }; | 186 }; |
174 | 187 |
175 } // namespace content | 188 } // namespace content |
176 | 189 |
177 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 190 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |