| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const CreateParams& params, | 137 const CreateParams& params, |
| 138 const SessionStorageNamespaceMap& session_storage_namespace_map); | 138 const SessionStorageNamespaceMap& session_storage_namespace_map); |
| 139 | 139 |
| 140 // Returns a WebContents that wraps the RenderViewHost, or NULL if the | 140 // Returns a WebContents that wraps the RenderViewHost, or NULL if the |
| 141 // render view host's delegate isn't a WebContents. | 141 // render view host's delegate isn't a WebContents. |
| 142 CONTENT_EXPORT static WebContents* FromRenderViewHost( | 142 CONTENT_EXPORT static WebContents* FromRenderViewHost( |
| 143 const RenderViewHost* rvh); | 143 const RenderViewHost* rvh); |
| 144 | 144 |
| 145 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh); | 145 CONTENT_EXPORT static WebContents* FromRenderFrameHost(RenderFrameHost* rfh); |
| 146 | 146 |
| 147 virtual ~WebContents() {} | 147 ~WebContents() override {} |
| 148 | 148 |
| 149 // Intrinsic tab state ------------------------------------------------------- | 149 // Intrinsic tab state ------------------------------------------------------- |
| 150 | 150 |
| 151 // Gets/Sets the delegate. | 151 // Gets/Sets the delegate. |
| 152 virtual WebContentsDelegate* GetDelegate() = 0; | 152 virtual WebContentsDelegate* GetDelegate() = 0; |
| 153 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; | 153 virtual void SetDelegate(WebContentsDelegate* delegate) = 0; |
| 154 | 154 |
| 155 // Gets the controller for this WebContents. | 155 // Gets the controller for this WebContents. |
| 156 virtual NavigationController& GetController() = 0; | 156 virtual NavigationController& GetController() = 0; |
| 157 virtual const NavigationController& GetController() const = 0; | 157 virtual const NavigationController& GetController() const = 0; |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 private: | 605 private: |
| 606 // This interface should only be implemented inside content. | 606 // This interface should only be implemented inside content. |
| 607 friend class WebContentsImpl; | 607 friend class WebContentsImpl; |
| 608 WebContents() {} | 608 WebContents() {} |
| 609 }; | 609 }; |
| 610 | 610 |
| 611 } // namespace content | 611 } // namespace content |
| 612 | 612 |
| 613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 613 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |