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_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 258 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
259 RenderFrameHostDelegate* delegate() { return delegate_; } | 259 RenderFrameHostDelegate* delegate() { return delegate_; } |
260 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 260 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
261 | 261 |
262 const GURL& last_committed_url() const { return last_committed_url_; } | 262 const GURL& last_committed_url() const { return last_committed_url_; } |
263 | 263 |
264 // Allows FrameTreeNode::SetCurrentURL to update this frame's last committed | 264 // Allows FrameTreeNode::SetCurrentURL to update this frame's last committed |
265 // URL. Do not call this directly, since we rely on SetCurrentURL to track | 265 // URL. Do not call this directly, since we rely on SetCurrentURL to track |
266 // whether a real load has committed or not. | 266 // whether a real load has committed or not. |
267 void set_last_committed_url(const GURL& url) { | 267 void SetLastCommittedUrl(const GURL& url); |
268 last_committed_url_ = url; | |
269 } | |
270 | 268 |
271 // The most recent non-net-error URL to commit in this frame. In almost all | 269 // The most recent non-net-error URL to commit in this frame. In almost all |
272 // cases, use GetLastCommittedURL instead. | 270 // cases, use GetLastCommittedURL instead. |
273 const GURL& last_successful_url() { return last_successful_url_; } | 271 const GURL& last_successful_url() { return last_successful_url_; } |
274 void set_last_successful_url(const GURL& url) { | 272 void set_last_successful_url(const GURL& url) { |
275 last_successful_url_ = url; | 273 last_successful_url_ = url; |
276 } | 274 } |
277 | 275 |
278 // Returns the associated WebUI or null if none applies. | 276 // Returns the associated WebUI or null if none applies. |
279 WebUIImpl* web_ui() const { return web_ui_.get(); } | 277 WebUIImpl* web_ui() const { return web_ui_.get(); } |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 | 1216 |
1219 // NOTE: This must be the last member. | 1217 // NOTE: This must be the last member. |
1220 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1218 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1221 | 1219 |
1222 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1220 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1223 }; | 1221 }; |
1224 | 1222 |
1225 } // namespace content | 1223 } // namespace content |
1226 | 1224 |
1227 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1225 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |