| 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" |
| 11 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
| 12 #include "ui/base/window_open_disposition.h" | 12 #include "ui/base/window_open_disposition.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 struct FrameHostMsg_BeginNavigation_Params; | 15 struct FrameHostMsg_BeginNavigation_Params; |
| 16 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 16 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class TimeTicks; | 20 class TimeTicks; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 | 24 |
| 25 class FrameNavigationEntry; |
| 25 class FrameTreeNode; | 26 class FrameTreeNode; |
| 26 class NavigationControllerImpl; | 27 class NavigationControllerImpl; |
| 27 class NavigationEntryImpl; | 28 class NavigationEntryImpl; |
| 28 class NavigationRequest; | 29 class NavigationRequest; |
| 29 class NavigatorDelegate; | 30 class NavigatorDelegate; |
| 30 class RenderFrameHostImpl; | 31 class RenderFrameHostImpl; |
| 31 class ResourceRequestBody; | 32 class ResourceRequestBody; |
| 32 class StreamHandle; | 33 class StreamHandle; |
| 33 struct BeginNavigationParams; | 34 struct BeginNavigationParams; |
| 34 struct CommonNavigationParams; | 35 struct CommonNavigationParams; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // to a new URL). | 80 // to a new URL). |
| 80 // | 81 // |
| 81 // If this method returns false, then the navigation is discarded (equivalent | 82 // If this method returns false, then the navigation is discarded (equivalent |
| 82 // to calling DiscardPendingEntry on the NavigationController). | 83 // to calling DiscardPendingEntry on the NavigationController). |
| 83 // | 84 // |
| 84 // TODO(nasko): Remove this method from the interface, since Navigator and | 85 // TODO(nasko): Remove this method from the interface, since Navigator and |
| 85 // NavigationController know about each other. This will be possible once | 86 // NavigationController know about each other. This will be possible once |
| 86 // initialization of Navigator and NavigationController is properly done. | 87 // initialization of Navigator and NavigationController is properly done. |
| 87 virtual bool NavigateToPendingEntry( | 88 virtual bool NavigateToPendingEntry( |
| 88 FrameTreeNode* frame_tree_node, | 89 FrameTreeNode* frame_tree_node, |
| 90 const FrameNavigationEntry& frame_nav_entry, |
| 89 NavigationController::ReloadType reload_type); | 91 NavigationController::ReloadType reload_type); |
| 90 | 92 |
| 91 | 93 |
| 92 // Navigation requests ------------------------------------------------------- | 94 // Navigation requests ------------------------------------------------------- |
| 93 | 95 |
| 94 virtual base::TimeTicks GetCurrentLoadStart(); | 96 virtual base::TimeTicks GetCurrentLoadStart(); |
| 95 | 97 |
| 96 // The RenderFrameHostImpl has received a request to open a URL with the | 98 // The RenderFrameHostImpl has received a request to open a URL with the |
| 97 // specified |disposition|. | 99 // specified |disposition|. |
| 98 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 100 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); | 170 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); |
| 169 | 171 |
| 170 protected: | 172 protected: |
| 171 friend class base::RefCounted<Navigator>; | 173 friend class base::RefCounted<Navigator>; |
| 172 virtual ~Navigator() {} | 174 virtual ~Navigator() {} |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 } // namespace content | 177 } // namespace content |
| 176 | 178 |
| 177 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 179 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |