OLD | NEW |
---|---|
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 | 115 |
116 // True if the contents should be initially hidden. | 116 // True if the contents should be initially hidden. |
117 bool initially_hidden; | 117 bool initially_hidden; |
118 | 118 |
119 // 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. |
120 BrowserPluginGuestDelegate* guest_delegate; | 120 BrowserPluginGuestDelegate* guest_delegate; |
121 | 121 |
122 // Used to specify the location context which display the new view should | 122 // Used to specify the location context which display the new view should |
123 // belong. This can be nullptr if not needed. | 123 // belong. This can be nullptr if not needed. |
124 gfx::NativeView context; | 124 gfx::NativeView context; |
125 | |
126 // Created by the renderer process. | |
127 bool renderer_created; | |
Charlie Reis
2015/02/12 00:29:31
Hmm, this is kind of difficult to understand witho
nasko
2015/02/12 17:52:26
It is the last one of them. I've renamed the param
| |
125 }; | 128 }; |
126 | 129 |
127 // Creates a new WebContents. | 130 // Creates a new WebContents. |
128 CONTENT_EXPORT static WebContents* Create(const CreateParams& params); | 131 CONTENT_EXPORT static WebContents* Create(const CreateParams& params); |
129 | 132 |
130 // Similar to Create() above but should be used when you need to prepopulate | 133 // Similar to Create() above but should be used when you need to prepopulate |
131 // the SessionStorageNamespaceMap of the WebContents. This can happen if | 134 // the SessionStorageNamespaceMap of the WebContents. This can happen if |
132 // you duplicate a WebContents, try to reconstitute it from a saved state, | 135 // you duplicate a WebContents, try to reconstitute it from a saved state, |
133 // or when you create a new WebContents based on another one (eg., when | 136 // or when you create a new WebContents based on another one (eg., when |
134 // servicing a window.open() call). | 137 // servicing a window.open() call). |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
618 | 621 |
619 private: | 622 private: |
620 // This interface should only be implemented inside content. | 623 // This interface should only be implemented inside content. |
621 friend class WebContentsImpl; | 624 friend class WebContentsImpl; |
622 WebContents() {} | 625 WebContents() {} |
623 }; | 626 }; |
624 | 627 |
625 } // namespace content | 628 } // namespace content |
626 | 629 |
627 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 630 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |