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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1079163008: PlzNavigate: provide the FrameTreeNode ID to the network stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-unittests
Patch Set: Addressed David's comments 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 class FriendZone; 102 class FriendZone;
103 103
104 ~WebContentsImpl() override; 104 ~WebContentsImpl() override;
105 105
106 static WebContentsImpl* CreateWithOpener( 106 static WebContentsImpl* CreateWithOpener(
107 const WebContents::CreateParams& params, 107 const WebContents::CreateParams& params,
108 WebContentsImpl* opener); 108 WebContentsImpl* opener);
109 109
110 static std::vector<WebContentsImpl*> GetAllWebContents(); 110 static std::vector<WebContentsImpl*> GetAllWebContents();
111 111
112 static WebContentsImpl* FromFrameTreeNode(FrameTreeNode* frame_tree_node);
113
112 // Returns the opener WebContentsImpl, if any. This can be set to null if the 114 // Returns the opener WebContentsImpl, if any. This can be set to null if the
113 // opener is closed or the page clears its window.opener. 115 // opener is closed or the page clears its window.opener.
114 WebContentsImpl* opener() const { return opener_; } 116 WebContentsImpl* opener() const { return opener_; }
115 117
116 // Creates a swapped out RenderView. This is used by the browser plugin to 118 // Creates a swapped out RenderView. This is used by the browser plugin to
117 // create a swapped out RenderView in the embedder render process for the 119 // create a swapped out RenderView in the embedder render process for the
118 // guest, to expose the guest's window object to the embedder. 120 // guest, to expose the guest's window object to the embedder.
119 // This returns the routing ID of the newly created swapped out RenderView. 121 // This returns the routing ID of the newly created swapped out RenderView.
120 int CreateSwappedOutRenderView(SiteInstance* instance); 122 int CreateSwappedOutRenderView(SiteInstance* instance);
121 123
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 // Adds/removes a callback called on creation of each new WebContents. 1274 // Adds/removes a callback called on creation of each new WebContents.
1273 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1275 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1274 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1276 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1275 1277
1276 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1278 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1277 }; 1279 };
1278 1280
1279 } // namespace content 1281 } // namespace content
1280 1282
1281 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1283 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698