| 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/navigation_handle_impl.h" | 10 #include "content/browser/frame_host/navigation_handle_impl.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 bool is_same_document_history_load); | 98 bool is_same_document_history_load); |
| 99 | 99 |
| 100 // Called on a newly created subframe during a history navigation. The browser | 100 // Called on a newly created subframe during a history navigation. The browser |
| 101 // process looks up the corresponding FrameNavigationEntry for the new frame | 101 // process looks up the corresponding FrameNavigationEntry for the new frame |
| 102 // navigates it in the correct process. Returns false if the | 102 // navigates it in the correct process. Returns false if the |
| 103 // FrameNavigationEntry can't be found or the navigation fails. This is only | 103 // FrameNavigationEntry can't be found or the navigation fails. This is only |
| 104 // used in OOPIF-enabled modes. | 104 // used in OOPIF-enabled modes. |
| 105 // TODO(creis): Remove |default_url| once we have collected UMA stats on the | 105 // TODO(creis): Remove |default_url| once we have collected UMA stats on the |
| 106 // cases that we use a different URL from history than the frame's src. | 106 // cases that we use a different URL from history than the frame's src. |
| 107 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, | 107 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, |
| 108 bool is_renderer_initiated, |
| 109 bool has_user_gesure, |
| 108 const GURL& default_url); | 110 const GURL& default_url); |
| 109 | 111 |
| 110 // Navigation requests ------------------------------------------------------- | 112 // Navigation requests ------------------------------------------------------- |
| 111 | 113 |
| 112 virtual base::TimeTicks GetCurrentLoadStart(); | 114 virtual base::TimeTicks GetCurrentLoadStart(); |
| 113 | 115 |
| 114 // The RenderFrameHostImpl has received a request to open a URL with the | 116 // The RenderFrameHostImpl has received a request to open a URL with the |
| 115 // specified |disposition|. | 117 // specified |disposition|. |
| 116 virtual void RequestOpenURL( | 118 virtual void RequestOpenURL( |
| 117 RenderFrameHostImpl* render_frame_host, | 119 RenderFrameHostImpl* render_frame_host, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} | 192 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} |
| 191 | 193 |
| 192 protected: | 194 protected: |
| 193 friend class base::RefCounted<Navigator>; | 195 friend class base::RefCounted<Navigator>; |
| 194 virtual ~Navigator() {} | 196 virtual ~Navigator() {} |
| 195 }; | 197 }; |
| 196 | 198 |
| 197 } // namespace content | 199 } // namespace content |
| 198 | 200 |
| 199 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 201 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |