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/web_contents/web_contents_impl.h

Issue 2331343005: PlzNavigate: Get StreamPrivate API to work. (Closed)
Patch Set: Fix DCHECK leading to browser test redness Created 4 years, 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 static WebContentsImpl* CreateWithOpener( 124 static WebContentsImpl* CreateWithOpener(
125 const WebContents::CreateParams& params, 125 const WebContents::CreateParams& params,
126 FrameTreeNode* opener); 126 FrameTreeNode* opener);
127 127
128 static std::vector<WebContentsImpl*> GetAllWebContents(); 128 static std::vector<WebContentsImpl*> GetAllWebContents();
129 129
130 static WebContentsImpl* FromFrameTreeNode(FrameTreeNode* frame_tree_node); 130 static WebContentsImpl* FromFrameTreeNode(FrameTreeNode* frame_tree_node);
131 static WebContents* FromRenderFrameHostID(int render_process_host_id, 131 static WebContents* FromRenderFrameHostID(int render_process_host_id,
132 int render_frame_host_id); 132 int render_frame_host_id);
133 static WebContents* FromFrameTreeNodeId(int frame_tree_node_id);
133 134
134 // Complex initialization here. Specifically needed to avoid having 135 // Complex initialization here. Specifically needed to avoid having
135 // members call back into our virtual functions in the constructor. 136 // members call back into our virtual functions in the constructor.
136 virtual void Init(const WebContents::CreateParams& params); 137 virtual void Init(const WebContents::CreateParams& params);
137 138
138 // Returns the SavePackage which manages the page saving job. May be NULL. 139 // Returns the SavePackage which manages the page saving job. May be NULL.
139 SavePackage* save_package() const { return save_package_.get(); } 140 SavePackage* save_package() const { return save_package_.get(); }
140 141
141 #if defined(OS_ANDROID) 142 #if defined(OS_ANDROID)
142 // In Android WebView, the RenderView needs created even there is no 143 // In Android WebView, the RenderView needs created even there is no
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 // Adds/removes a callback called on creation of each new WebContents. 1477 // Adds/removes a callback called on creation of each new WebContents.
1477 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1478 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1478 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1479 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1479 1480
1480 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1481 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1481 }; 1482 };
1482 1483
1483 } // namespace content 1484 } // namespace content
1484 1485
1485 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1486 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698