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

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

Issue 2331343005: PlzNavigate: Get StreamPrivate API to work. (Closed)
Patch Set: Fix DCHECK leading to browser test redness Created 4 years, 2 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 CONTENT_EXPORT static WebContents* CreateWithSessionStorage( 179 CONTENT_EXPORT static WebContents* CreateWithSessionStorage(
180 const CreateParams& params, 180 const CreateParams& params,
181 const SessionStorageNamespaceMap& session_storage_namespace_map); 181 const SessionStorageNamespaceMap& session_storage_namespace_map);
182 182
183 // Returns the WebContents that owns the RenderViewHost, or nullptr if the 183 // Returns the WebContents that owns the RenderViewHost, or nullptr if the
184 // render view host's delegate isn't a WebContents. 184 // render view host's delegate isn't a WebContents.
185 CONTENT_EXPORT static WebContents* FromRenderViewHost(RenderViewHost* rvh); 185 CONTENT_EXPORT static WebContents* FromRenderViewHost(RenderViewHost* rvh);
186 186
187 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh); 187 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh);
188 188
189 // Returns the WebContents associated with the |frame_tree_node_id|.
190 CONTENT_EXPORT static WebContents* FromFrameTreeNodeId(
191 int frame_tree_node_id);
192
189 ~WebContents() override {} 193 ~WebContents() override {}
190 194
191 // Intrinsic tab state ------------------------------------------------------- 195 // Intrinsic tab state -------------------------------------------------------
192 196
193 // Gets/Sets the delegate. 197 // Gets/Sets the delegate.
194 virtual WebContentsDelegate* GetDelegate() = 0; 198 virtual WebContentsDelegate* GetDelegate() = 0;
195 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; 199 virtual void SetDelegate(WebContentsDelegate* delegate) = 0;
196 200
197 // Gets the controller for this WebContents. 201 // Gets the controller for this WebContents.
198 virtual NavigationController& GetController() = 0; 202 virtual NavigationController& GetController() = 0;
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 751
748 private: 752 private:
749 // This interface should only be implemented inside content. 753 // This interface should only be implemented inside content.
750 friend class WebContentsImpl; 754 friend class WebContentsImpl;
751 WebContents() {} 755 WebContents() {}
752 }; 756 };
753 757
754 } // namespace content 758 } // namespace content
755 759
756 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 760 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698