| 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/browser/frame_host/navigator_delegate.h" | 10 #include "content/browser/frame_host/navigator_delegate.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/public/browser/navigation_controller.h" | 12 #include "content/public/browser/navigation_controller.h" |
| 13 #include "ui/base/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
| 14 | 14 |
| 15 class GURL; | 15 class GURL; |
| 16 struct FrameHostMsg_BeginNavigation_Params; | |
| 17 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 16 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 18 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| 21 class TimeTicks; | 20 class TimeTicks; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace content { | 23 namespace content { |
| 25 | 24 |
| 26 class FrameNavigationEntry; | 25 class FrameNavigationEntry; |
| 27 class FrameTreeNode; | 26 class FrameTreeNode; |
| 28 class NavigationControllerImpl; | |
| 29 class NavigationEntryImpl; | |
| 30 class NavigationHandleImpl; | 27 class NavigationHandleImpl; |
| 31 class NavigationRequest; | 28 class NavigationRequest; |
| 32 class RenderFrameHostImpl; | 29 class RenderFrameHostImpl; |
| 33 class ResourceRequestBodyImpl; | 30 class ResourceRequestBodyImpl; |
| 34 class StreamHandle; | |
| 35 struct BeginNavigationParams; | 31 struct BeginNavigationParams; |
| 36 struct CommonNavigationParams; | 32 struct CommonNavigationParams; |
| 37 struct ResourceResponse; | |
| 38 | 33 |
| 39 // Implementations of this interface are responsible for performing navigations | 34 // Implementations of this interface are responsible for performing navigations |
| 40 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode | 35 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode |
| 41 // objects that are using it and will be released once all nodes that use it are | 36 // objects that are using it and will be released once all nodes that use it are |
| 42 // freed. The Navigator is bound to a single frame tree and cannot be used by | 37 // freed. The Navigator is bound to a single frame tree and cannot be used by |
| 43 // multiple instances of FrameTree. | 38 // multiple instances of FrameTree. |
| 44 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad | 39 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad |
| 45 // from WebContentsImpl to this interface. | 40 // from WebContentsImpl to this interface. |
| 46 class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> { | 41 class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> { |
| 47 public: | 42 public: |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} | 190 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} |
| 196 | 191 |
| 197 protected: | 192 protected: |
| 198 friend class base::RefCounted<Navigator>; | 193 friend class base::RefCounted<Navigator>; |
| 199 virtual ~Navigator() {} | 194 virtual ~Navigator() {} |
| 200 }; | 195 }; |
| 201 | 196 |
| 202 } // namespace content | 197 } // namespace content |
| 203 | 198 |
| 204 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 199 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |