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

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

Issue 790423002: Add the main frame routing ID to WebContentsDelegate, use it in BackgroundContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content shell Created 6 years 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
102 102
103 // If the opener is suppressed, then the new WebContents doesn't hold a 103 // If the opener is suppressed, then the new WebContents doesn't hold a
104 // reference to its opener. 104 // reference to its opener.
105 bool opener_suppressed; 105 bool opener_suppressed;
106
107 // The routing ids of the RenderView and of the main RenderFrame. Either
108 // both must be provided, or both must be MSG_ROUTING_NONE to have the
109 // WebContents make the assignment.
106 int routing_id; 110 int routing_id;
107 int main_frame_routing_id; 111 int main_frame_routing_id;
108 112
109 // Initial size of the new WebContent's view. Can be (0, 0) if not needed. 113 // Initial size of the new WebContent's view. Can be (0, 0) if not needed.
110 gfx::Size initial_size; 114 gfx::Size initial_size;
111 115
112 // True if the contents should be initially hidden. 116 // True if the contents should be initially hidden.
113 bool initially_hidden; 117 bool initially_hidden;
114 118
115 // If non-null then this WebContents will be hosted by a BrowserPlugin. 119 // If non-null then this WebContents will be hosted by a BrowserPlugin.
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 608
605 private: 609 private:
606 // This interface should only be implemented inside content. 610 // This interface should only be implemented inside content.
607 friend class WebContentsImpl; 611 friend class WebContentsImpl;
608 WebContents() {} 612 WebContents() {}
609 }; 613 };
610 614
611 } // namespace content 615 } // namespace content
612 616
613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 617 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698