| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 class BrowserContext; | 51 class BrowserContext; |
| 52 class BrowserPluginGuestDelegate; | 52 class BrowserPluginGuestDelegate; |
| 53 class InterstitialPage; | 53 class InterstitialPage; |
| 54 class PageState; | 54 class PageState; |
| 55 class RenderFrameHost; | 55 class RenderFrameHost; |
| 56 class RenderProcessHost; | 56 class RenderProcessHost; |
| 57 class RenderViewHost; | 57 class RenderViewHost; |
| 58 class RenderWidgetHostView; | 58 class RenderWidgetHostView; |
| 59 class WebContentsDelegate; | 59 class WebContentsDelegate; |
| 60 class WebContentsInterfaceRegistry; |
| 60 struct CustomContextMenuContext; | 61 struct CustomContextMenuContext; |
| 61 struct DropData; | 62 struct DropData; |
| 62 struct Manifest; | 63 struct Manifest; |
| 63 struct MHTMLGenerationParams; | 64 struct MHTMLGenerationParams; |
| 64 struct PageImportanceSignals; | 65 struct PageImportanceSignals; |
| 65 struct RendererPreferences; | 66 struct RendererPreferences; |
| 66 | 67 |
| 67 // WebContents is the core class in content/. A WebContents renders web content | 68 // WebContents is the core class in content/. A WebContents renders web content |
| 68 // (usually HTML) in a rectangular area. | 69 // (usually HTML) in a rectangular area. |
| 69 // | 70 // |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // "view-source:" prefix for view source URLs, unlike NavigationEntry::GetURL | 217 // "view-source:" prefix for view source URLs, unlike NavigationEntry::GetURL |
| 217 // and NavigationHandle::GetURL). The last committed page is the current | 218 // and NavigationHandle::GetURL). The last committed page is the current |
| 218 // security context and the content that is actually displayed within the tab. | 219 // security context and the content that is actually displayed within the tab. |
| 219 // See also GetVisibleURL above, which may differ from this URL. | 220 // See also GetVisibleURL above, which may differ from this URL. |
| 220 virtual const GURL& GetLastCommittedURL() const = 0; | 221 virtual const GURL& GetLastCommittedURL() const = 0; |
| 221 | 222 |
| 222 // Return the currently active RenderProcessHost and RenderViewHost. Each of | 223 // Return the currently active RenderProcessHost and RenderViewHost. Each of |
| 223 // these may change over time. | 224 // these may change over time. |
| 224 virtual RenderProcessHost* GetRenderProcessHost() const = 0; | 225 virtual RenderProcessHost* GetRenderProcessHost() const = 0; |
| 225 | 226 |
| 227 // Return the associated interface registry for this WebContents. |
| 228 virtual WebContentsInterfaceRegistry* GetWebContentsInterfaceRegistry() = 0; |
| 229 |
| 226 // Returns the main frame for the currently active view. | 230 // Returns the main frame for the currently active view. |
| 227 virtual RenderFrameHost* GetMainFrame() = 0; | 231 virtual RenderFrameHost* GetMainFrame() = 0; |
| 228 | 232 |
| 229 // Returns the focused frame for the currently active view. | 233 // Returns the focused frame for the currently active view. |
| 230 virtual RenderFrameHost* GetFocusedFrame() = 0; | 234 virtual RenderFrameHost* GetFocusedFrame() = 0; |
| 231 | 235 |
| 232 // Returns the current RenderFrameHost for a given FrameTreeNode ID if it is | 236 // Returns the current RenderFrameHost for a given FrameTreeNode ID if it is |
| 233 // part of this tab. See RenderFrameHost::GetFrameTreeNodeId for documentation | 237 // part of this tab. See RenderFrameHost::GetFrameTreeNodeId for documentation |
| 234 // on this ID. | 238 // on this ID. |
| 235 virtual RenderFrameHost* FindFrameByFrameTreeNodeId( | 239 virtual RenderFrameHost* FindFrameByFrameTreeNodeId( |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 | 742 |
| 739 private: | 743 private: |
| 740 // This interface should only be implemented inside content. | 744 // This interface should only be implemented inside content. |
| 741 friend class WebContentsImpl; | 745 friend class WebContentsImpl; |
| 742 WebContents() {} | 746 WebContents() {} |
| 743 }; | 747 }; |
| 744 | 748 |
| 745 } // namespace content | 749 } // namespace content |
| 746 | 750 |
| 747 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 751 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |