Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: content/browser/frame_host/frame_tree_node.h

Issue 429603002: PlzNavigate: Add a static CommitNavigation method in FrameTreeNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_FRAME_TREE_NODE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "content/browser/frame_host/render_frame_host_impl.h" 14 #include "content/browser/frame_host/render_frame_host_impl.h"
15 #include "content/browser/frame_host/render_frame_host_manager.h" 15 #include "content/browser/frame_host/render_frame_host_manager.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class FrameTree; 21 class FrameTree;
22 class Navigator; 22 class Navigator;
23 class RenderFrameHostImpl; 23 class RenderFrameHostImpl;
24 struct NavigationCommitInfo;
24 25
25 // When a page contains iframes, its renderer process maintains a tree structure 26 // When a page contains iframes, its renderer process maintains a tree structure
26 // of those frames. We are mirroring this tree in the browser process. This 27 // of those frames. We are mirroring this tree in the browser process. This
27 // class represents a node in this tree and is a wrapper for all objects that 28 // class represents a node in this tree and is a wrapper for all objects that
28 // are frame-specific (as opposed to page-specific). 29 // are frame-specific (as opposed to page-specific).
29 class CONTENT_EXPORT FrameTreeNode { 30 class CONTENT_EXPORT FrameTreeNode {
30 public: 31 public:
32 // Commits a navigation for this node (in browser-driven navigation).
nasko 2014/07/30 08:36:16 nit: Let's make sure this is updated once we agree
clamy 2014/08/12 13:41:47 Done.
33 static void CommitNavigationInNode(int64 frame_tree_node_id,
34 const NavigationCommitInfo& info);
31 35
32 FrameTreeNode(FrameTree* frame_tree, 36 FrameTreeNode(FrameTree* frame_tree,
33 Navigator* navigator, 37 Navigator* navigator,
34 RenderFrameHostDelegate* render_frame_delegate, 38 RenderFrameHostDelegate* render_frame_delegate,
35 RenderViewHostDelegate* render_view_delegate, 39 RenderViewHostDelegate* render_view_delegate,
36 RenderWidgetHostDelegate* render_widget_delegate, 40 RenderWidgetHostDelegate* render_widget_delegate,
37 RenderFrameHostManager::Delegate* manager_delegate, 41 RenderFrameHostManager::Delegate* manager_delegate,
38 const std::string& name); 42 const std::string& name);
39 43
40 ~FrameTreeNode(); 44 ~FrameTreeNode();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // TODO(creis): Remove this when we can store subframe URLs in the 132 // TODO(creis): Remove this when we can store subframe URLs in the
129 // NavigationController. 133 // NavigationController.
130 GURL current_url_; 134 GURL current_url_;
131 135
132 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); 136 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode);
133 }; 137 };
134 138
135 } // namespace content 139 } // namespace content
136 140
137 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ 141 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | content/browser/frame_host/frame_tree_node.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698