| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // No interstitial page should already be attached. | 146 // No interstitial page should already be attached. |
| 147 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page); | 147 void AttachInterstitialPage(InterstitialPageImpl* interstitial_page); |
| 148 | 148 |
| 149 // Unsets the currently showing interstitial. | 149 // Unsets the currently showing interstitial. |
| 150 void DetachInterstitialPage(); | 150 void DetachInterstitialPage(); |
| 151 | 151 |
| 152 #if defined(OS_ANDROID) | 152 #if defined(OS_ANDROID) |
| 153 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { | 153 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { |
| 154 return java_bridge_dispatcher_host_manager_.get(); | 154 return java_bridge_dispatcher_host_manager_.get(); |
| 155 } | 155 } |
| 156 |
| 157 // In Android WebView, the RenderView needs created even there is no |
| 158 // navigation entry, this allows Android WebViews to use |
| 159 // javascript: URLs that load into the DOMWindow before the first page |
| 160 // load. This is not safe to do in any context that a web page could get a |
| 161 // reference to the DOMWindow before the first page load. |
| 162 bool CreateRenderViewForInitialEmptyDocument(); |
| 156 #endif | 163 #endif |
| 157 | 164 |
| 158 // Expose the render manager for testing. | 165 // Expose the render manager for testing. |
| 159 RenderViewHostManager* GetRenderManagerForTesting(); | 166 RenderViewHostManager* GetRenderManagerForTesting(); |
| 160 | 167 |
| 161 // Returns guest browser plugin object, or NULL if this WebContents is not a | 168 // Returns guest browser plugin object, or NULL if this WebContents is not a |
| 162 // guest. | 169 // guest. |
| 163 BrowserPluginGuest* GetBrowserPluginGuest() const; | 170 BrowserPluginGuest* GetBrowserPluginGuest() const; |
| 164 | 171 |
| 165 // Sets a BrowserPluginGuest object for this WebContents. If this WebContents | 172 // Sets a BrowserPluginGuest object for this WebContents. If this WebContents |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 // Maps the ids of pending image downloads to their callbacks | 964 // Maps the ids of pending image downloads to their callbacks |
| 958 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 965 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 959 ImageDownloadMap image_download_map_; | 966 ImageDownloadMap image_download_map_; |
| 960 | 967 |
| 961 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 968 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 962 }; | 969 }; |
| 963 | 970 |
| 964 } // namespace content | 971 } // namespace content |
| 965 | 972 |
| 966 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 973 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |