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" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // | 89 // |
90 // TODO(nasko): Remove this method from the interface, since Navigator and | 90 // TODO(nasko): Remove this method from the interface, since Navigator and |
91 // NavigationController know about each other. This will be possible once | 91 // NavigationController know about each other. This will be possible once |
92 // initialization of Navigator and NavigationController is properly done. | 92 // initialization of Navigator and NavigationController is properly done. |
93 virtual bool NavigateToPendingEntry( | 93 virtual bool NavigateToPendingEntry( |
94 FrameTreeNode* frame_tree_node, | 94 FrameTreeNode* frame_tree_node, |
95 const FrameNavigationEntry& frame_entry, | 95 const FrameNavigationEntry& frame_entry, |
96 NavigationController::ReloadType reload_type, | 96 NavigationController::ReloadType reload_type, |
97 bool is_same_document_history_load); | 97 bool is_same_document_history_load); |
98 | 98 |
| 99 // Called on a newly created subframe during a history navigation. The browser |
| 100 // process looks up the corresponding FrameNavigationEntry for the new frame |
| 101 // based on |unique_name| and navigates it in the correct process. Returns |
| 102 // false if the FrameNavigationEntry can't be found or the navigation fails. |
| 103 // This is only used in OOPIF-enabled modes. |
| 104 virtual bool NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, |
| 105 const std::string& unique_name); |
| 106 |
99 // Navigation requests ------------------------------------------------------- | 107 // Navigation requests ------------------------------------------------------- |
100 | 108 |
101 virtual base::TimeTicks GetCurrentLoadStart(); | 109 virtual base::TimeTicks GetCurrentLoadStart(); |
102 | 110 |
103 // The RenderFrameHostImpl has received a request to open a URL with the | 111 // The RenderFrameHostImpl has received a request to open a URL with the |
104 // specified |disposition|. | 112 // specified |disposition|. |
105 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 113 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
106 const GURL& url, | 114 const GURL& url, |
107 SiteInstance* source_site_instance, | 115 SiteInstance* source_site_instance, |
108 const Referrer& referrer, | 116 const Referrer& referrer, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const base::TimeTicks& renderer_before_unload_end_time) {} | 187 const base::TimeTicks& renderer_before_unload_end_time) {} |
180 | 188 |
181 protected: | 189 protected: |
182 friend class base::RefCounted<Navigator>; | 190 friend class base::RefCounted<Navigator>; |
183 virtual ~Navigator() {} | 191 virtual ~Navigator() {} |
184 }; | 192 }; |
185 | 193 |
186 } // namespace content | 194 } // namespace content |
187 | 195 |
188 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 196 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |