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

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

Issue 1086283002: Track frame openers in FrameTreeNodes instead of WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup in WebContentsImpl Created 5 years, 6 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 <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 BrowserContext* browser_context; 92 BrowserContext* browser_context;
93 93
94 // Specifying a SiteInstance here is optional. It can be set to avoid an 94 // Specifying a SiteInstance here is optional. It can be set to avoid an
95 // extra process swap if the first navigation is expected to require a 95 // extra process swap if the first navigation is expected to require a
96 // privileged process. 96 // privileged process.
97 SiteInstance* site_instance; 97 SiteInstance* site_instance;
98 98
99 // The opener WebContents is the WebContents that initiated this request, 99 // The opener WebContents is the WebContents that initiated this request,
100 // if any. 100 // if any.
101 WebContents* opener; 101 WebContents* opener;
Charlie Reis 2015/06/03 20:01:37 Let's have frame ID and process ID rather than Web
alexmos 2015/06/05 22:34:32 Done.
102 102
103 // The routing id of the frame initiating the open.
104 int opener_render_frame_id;
105
103 // If the opener is suppressed, then the new WebContents doesn't hold a 106 // If the opener is suppressed, then the new WebContents doesn't hold a
104 // reference to its opener. 107 // reference to its opener.
105 bool opener_suppressed; 108 bool opener_suppressed;
106 109
107 // Indicates whether this WebContents was created with a window.opener. 110 // Indicates whether this WebContents was created with a window.opener.
108 // This is used when determining whether the WebContents is allowed to be 111 // This is used when determining whether the WebContents is allowed to be
109 // closed via window.close(). This may be true even with a null |opener| 112 // closed via window.close(). This may be true even with a null |opener|
110 // (e.g., for blocked popups). 113 // (e.g., for blocked popups).
111 bool created_with_opener; 114 bool created_with_opener;
112 115
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 670
668 private: 671 private:
669 // This interface should only be implemented inside content. 672 // This interface should only be implemented inside content.
670 friend class WebContentsImpl; 673 friend class WebContentsImpl;
671 WebContents() {} 674 WebContents() {}
672 }; 675 };
673 676
674 } // namespace content 677 } // namespace content
675 678
676 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 679 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698