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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // understand when SessionStorageNamespace objects should be cloned, why | 69 // understand when SessionStorageNamespace objects should be cloned, why |
70 // they should not be shared by multiple WebContents, and what bad things | 70 // they should not be shared by multiple WebContents, and what bad things |
71 // can happen if you share the object. | 71 // can happen if you share the object. |
72 CONTENT_EXPORT static WebContents* CreateWithSessionStorage( | 72 CONTENT_EXPORT static WebContents* CreateWithSessionStorage( |
73 BrowserContext* browser_context, | 73 BrowserContext* browser_context, |
74 SiteInstance* site_instance, | 74 SiteInstance* site_instance, |
75 int routing_id, | 75 int routing_id, |
76 const WebContents* base_web_contents, | 76 const WebContents* base_web_contents, |
77 const SessionStorageNamespaceMap& session_storage_namespace_map); | 77 const SessionStorageNamespaceMap& session_storage_namespace_map); |
78 | 78 |
| 79 |
| 80 // Creates a WebContents to be used as a browser plugin guest. |
| 81 CONTENT_EXPORT static WebContents* CreateGuest( |
| 82 BrowserContext* browser_context, |
| 83 const std::string& host, |
| 84 int guest_instance_id); |
| 85 |
79 // Returns a WebContents that wraps the RenderViewHost, or NULL if the | 86 // Returns a WebContents that wraps the RenderViewHost, or NULL if the |
80 // render view host's delegate isn't a WebContents. | 87 // render view host's delegate isn't a WebContents. |
81 CONTENT_EXPORT static WebContents* FromRenderViewHost( | 88 CONTENT_EXPORT static WebContents* FromRenderViewHost( |
82 const RenderViewHost* rvh); | 89 const RenderViewHost* rvh); |
83 | 90 |
84 virtual ~WebContents() {} | 91 virtual ~WebContents() {} |
85 | 92 |
86 // Intrinsic tab state ------------------------------------------------------- | 93 // Intrinsic tab state ------------------------------------------------------- |
87 | 94 |
88 // Gets/Sets the delegate. | 95 // Gets/Sets the delegate. |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 // Focuses the location bar. | 394 // Focuses the location bar. |
388 virtual void SetFocusToLocationBar(bool select_all) = 0; | 395 virtual void SetFocusToLocationBar(bool select_all) = 0; |
389 | 396 |
390 // Does this have an opener associated with it? | 397 // Does this have an opener associated with it? |
391 virtual bool HasOpener() const = 0; | 398 virtual bool HasOpener() const = 0; |
392 }; | 399 }; |
393 | 400 |
394 } // namespace content | 401 } // namespace content |
395 | 402 |
396 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 403 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |