| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |