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

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

Issue 1093923003: Change FrameTreeNode id from int64 to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change FrameTreeNode id from int64 to int Created 5 years, 7 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_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 RenderFrameHostDelegate* render_frame_delegate, 47 RenderFrameHostDelegate* render_frame_delegate,
48 RenderViewHostDelegate* render_view_delegate, 48 RenderViewHostDelegate* render_view_delegate,
49 RenderWidgetHostDelegate* render_widget_delegate, 49 RenderWidgetHostDelegate* render_widget_delegate,
50 RenderFrameHostManager::Delegate* manager_delegate); 50 RenderFrameHostManager::Delegate* manager_delegate);
51 ~FrameTree(); 51 ~FrameTree();
52 52
53 FrameTreeNode* root() const { return root_.get(); } 53 FrameTreeNode* root() const { return root_.get(); }
54 54
55 // Returns the FrameTreeNode with the given |frame_tree_node_id| if it is part 55 // Returns the FrameTreeNode with the given |frame_tree_node_id| if it is part
56 // of this FrameTree. 56 // of this FrameTree.
57 FrameTreeNode* FindByID(int64 frame_tree_node_id); 57 FrameTreeNode* FindByID(int frame_tree_node_id);
58 58
59 // Returns the FrameTreeNode with the given renderer-specific |routing_id|. 59 // Returns the FrameTreeNode with the given renderer-specific |routing_id|.
60 FrameTreeNode* FindByRoutingID(int process_id, int routing_id); 60 FrameTreeNode* FindByRoutingID(int process_id, int routing_id);
61 61
62 // Returns the first frame in this tree with the given |name|, or the main 62 // Returns the first frame in this tree with the given |name|, or the main
63 // frame if |name| is empty. 63 // frame if |name| is empty.
64 // Note that this does NOT support pseudo-names like _self, _top, and _blank, 64 // Note that this does NOT support pseudo-names like _self, _top, and _blank,
65 // nor searching other FrameTrees (unlike blink::WebView::findFrameByName). 65 // nor searching other FrameTrees (unlike blink::WebView::findFrameByName).
66 FrameTreeNode* FindByName(const std::string& name); 66 FrameTreeNode* FindByName(const std::string& name);
67 67
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Map of SiteInstance ID to RenderViewHosts that are pending shutdown. The 171 // Map of SiteInstance ID to RenderViewHosts that are pending shutdown. The
172 // renderers of these RVH are currently executing the unload event in 172 // renderers of these RVH are currently executing the unload event in
173 // background. When the SwapOutACK is received, they will be deleted. In the 173 // background. When the SwapOutACK is received, they will be deleted. In the
174 // meantime, they are kept in this map, as they should not be reused (part of 174 // meantime, they are kept in this map, as they should not be reused (part of
175 // their state is already gone away). 175 // their state is already gone away).
176 RenderViewHostMultiMap render_view_host_pending_shutdown_map_; 176 RenderViewHostMultiMap render_view_host_pending_shutdown_map_;
177 177
178 scoped_ptr<FrameTreeNode> root_; 178 scoped_ptr<FrameTreeNode> root_;
179 179
180 int64 focused_frame_tree_node_id_; 180 int focused_frame_tree_node_id_;
181 181
182 base::Callback<void(RenderFrameHost*)> on_frame_removed_; 182 base::Callback<void(RenderFrameHost*)> on_frame_removed_;
183 183
184 // Overall load progress. 184 // Overall load progress.
185 double load_progress_; 185 double load_progress_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(FrameTree); 187 DISALLOW_COPY_AND_ASSIGN(FrameTree);
188 }; 188 };
189 189
190 } // namespace content 190 } // namespace content
191 191
192 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_ 192 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_accessibility.cc ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698