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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 // Returns a WebContents that wraps the RenderViewHost, or nullptr if the | 144 // Returns a WebContents that wraps the RenderViewHost, or nullptr if the |
145 // render view host's delegate isn't a WebContents. | 145 // render view host's delegate isn't a WebContents. |
146 CONTENT_EXPORT static WebContents* FromRenderViewHost( | 146 CONTENT_EXPORT static WebContents* FromRenderViewHost( |
147 const RenderViewHost* rvh); | 147 const RenderViewHost* rvh); |
148 | 148 |
149 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh); | 149 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh); |
150 | 150 |
151 ~WebContents() override {} | 151 ~WebContents() override {} |
152 | 152 |
| 153 // Attaches or associates a local frame denoted by |
| 154 // |embedder_local_render_frame_id| in |owner_web_contents| to this |
| 155 // WebContents. |
| 156 virtual int AttachLocalFrameToGuest(WebContents* owner_web_contents, |
| 157 int embedder_local_render_frame_id, |
| 158 int guest_instance_id) = 0; |
| 159 |
| 160 |
153 // Intrinsic tab state ------------------------------------------------------- | 161 // Intrinsic tab state ------------------------------------------------------- |
154 | 162 |
155 // Gets/Sets the delegate. | 163 // Gets/Sets the delegate. |
156 virtual WebContentsDelegate* GetDelegate() = 0; | 164 virtual WebContentsDelegate* GetDelegate() = 0; |
157 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; | 165 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; |
158 | 166 |
159 // Gets the controller for this WebContents. | 167 // Gets the controller for this WebContents. |
160 virtual NavigationController& GetController() = 0; | 168 virtual NavigationController& GetController() = 0; |
161 virtual const NavigationController& GetController() const = 0; | 169 virtual const NavigationController& GetController() const = 0; |
162 | 170 |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 | 626 |
619 private: | 627 private: |
620 // This interface should only be implemented inside content. | 628 // This interface should only be implemented inside content. |
621 friend class WebContentsImpl; | 629 friend class WebContentsImpl; |
622 WebContents() {} | 630 WebContents() {} |
623 }; | 631 }; |
624 | 632 |
625 } // namespace content | 633 } // namespace content |
626 | 634 |
627 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 635 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |