| 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 bool CreateRenderView(RenderViewHost* render_view_host, |
| 158 int opener_route_id, |
| 159 int max_page_id); |
| 156 #endif | 160 #endif |
| 157 | 161 |
| 158 // Expose the render manager for testing. | 162 // Expose the render manager for testing. |
| 159 RenderViewHostManager* GetRenderManagerForTesting(); | 163 RenderViewHostManager* GetRenderManagerForTesting(); |
| 160 | 164 |
| 161 // Returns guest browser plugin object, or NULL if this WebContents is not a | 165 // Returns guest browser plugin object, or NULL if this WebContents is not a |
| 162 // guest. | 166 // guest. |
| 163 BrowserPluginGuest* GetBrowserPluginGuest() const; | 167 BrowserPluginGuest* GetBrowserPluginGuest() const; |
| 164 | 168 |
| 165 // Sets a BrowserPluginGuest object for this WebContents. If this WebContents | 169 // Sets a BrowserPluginGuest object for this WebContents. If this WebContents |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 | 747 |
| 744 // Removes browser plugin embedder if there is one. | 748 // Removes browser plugin embedder if there is one. |
| 745 void RemoveBrowserPluginEmbedder(); | 749 void RemoveBrowserPluginEmbedder(); |
| 746 | 750 |
| 747 // Clear |render_view_host|'s PowerSaveBlockers. | 751 // Clear |render_view_host|'s PowerSaveBlockers. |
| 748 void ClearPowerSaveBlockers(RenderViewHost* render_view_host); | 752 void ClearPowerSaveBlockers(RenderViewHost* render_view_host); |
| 749 | 753 |
| 750 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty. | 754 // Clear all PowerSaveBlockers, leave power_save_blocker_ empty. |
| 751 void ClearAllPowerSaveBlockers(); | 755 void ClearAllPowerSaveBlockers(); |
| 752 | 756 |
| 757 bool CreateRenderViewInternal(RenderViewHost* render_view_host, |
| 758 int opener_route_id, |
| 759 int max_page_id); |
| 760 |
| 753 // Data for core operation --------------------------------------------------- | 761 // Data for core operation --------------------------------------------------- |
| 754 | 762 |
| 755 // Delegate for notifying our owner about stuff. Not owned by us. | 763 // Delegate for notifying our owner about stuff. Not owned by us. |
| 756 WebContentsDelegate* delegate_; | 764 WebContentsDelegate* delegate_; |
| 757 | 765 |
| 758 // Handles the back/forward list and loading. | 766 // Handles the back/forward list and loading. |
| 759 NavigationControllerImpl controller_; | 767 NavigationControllerImpl controller_; |
| 760 | 768 |
| 761 // The corresponding view. | 769 // The corresponding view. |
| 762 scoped_ptr<WebContentsViewPort> view_; | 770 scoped_ptr<WebContentsViewPort> view_; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 // Maps the ids of pending image downloads to their callbacks | 962 // Maps the ids of pending image downloads to their callbacks |
| 955 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 963 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 956 ImageDownloadMap image_download_map_; | 964 ImageDownloadMap image_download_map_; |
| 957 | 965 |
| 958 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 966 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 959 }; | 967 }; |
| 960 | 968 |
| 961 } // namespace content | 969 } // namespace content |
| 962 | 970 |
| 963 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 971 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |