| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual ~WebContentsImpl(); | 92 virtual ~WebContentsImpl(); |
| 93 | 93 |
| 94 static WebContentsImpl* CreateWithOpener( | 94 static WebContentsImpl* CreateWithOpener( |
| 95 const WebContents::CreateParams& params, | 95 const WebContents::CreateParams& params, |
| 96 WebContentsImpl* opener); | 96 WebContentsImpl* opener); |
| 97 | 97 |
| 98 // Returns the opener WebContentsImpl, if any. This can be set to null if the | 98 // Returns the opener WebContentsImpl, if any. This can be set to null if the |
| 99 // opener is closed or the page clears its window.opener. | 99 // opener is closed or the page clears its window.opener. |
| 100 WebContentsImpl* opener() const { return opener_; } | 100 WebContentsImpl* opener() const { return opener_; } |
| 101 | 101 |
| 102 // Creates a WebContents to be used as a browser plugin guest. | |
| 103 static BrowserPluginGuest* CreateGuest( | |
| 104 BrowserContext* browser_context, | |
| 105 content::SiteInstance* site_instance, | |
| 106 int guest_instance_id, | |
| 107 scoped_ptr<base::DictionaryValue> extra_params); | |
| 108 | |
| 109 // Creates a swapped out RenderView. This is used by the browser plugin to | 102 // Creates a swapped out RenderView. This is used by the browser plugin to |
| 110 // create a swapped out RenderView in the embedder render process for the | 103 // create a swapped out RenderView in the embedder render process for the |
| 111 // guest, to expose the guest's window object to the embedder. | 104 // guest, to expose the guest's window object to the embedder. |
| 112 // This returns the routing ID of the newly created swapped out RenderView. | 105 // This returns the routing ID of the newly created swapped out RenderView. |
| 113 int CreateSwappedOutRenderView(SiteInstance* instance); | 106 int CreateSwappedOutRenderView(SiteInstance* instance); |
| 114 | 107 |
| 115 // Complex initialization here. Specifically needed to avoid having | 108 // Complex initialization here. Specifically needed to avoid having |
| 116 // members call back into our virtual functions in the constructor. | 109 // members call back into our virtual functions in the constructor. |
| 117 virtual void Init(const WebContents::CreateParams& params); | 110 virtual void Init(const WebContents::CreateParams& params); |
| 118 | 111 |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 | 1101 |
| 1109 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1102 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1110 bool last_dialog_suppressed_; | 1103 bool last_dialog_suppressed_; |
| 1111 | 1104 |
| 1112 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1105 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1113 }; | 1106 }; |
| 1114 | 1107 |
| 1115 } // namespace content | 1108 } // namespace content |
| 1116 | 1109 |
| 1117 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1110 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |