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 30 matching lines...) Expand all Loading... |
41 struct BrowserPluginHostMsg_ResizeGuest_Params; | 41 struct BrowserPluginHostMsg_ResizeGuest_Params; |
42 struct ViewHostMsg_DateTimeDialogValue_Params; | 42 struct ViewHostMsg_DateTimeDialogValue_Params; |
43 struct ViewMsg_PostMessage_Params; | 43 struct ViewMsg_PostMessage_Params; |
44 | 44 |
45 namespace content { | 45 namespace content { |
46 class BrowserPluginEmbedder; | 46 class BrowserPluginEmbedder; |
47 class BrowserPluginGuest; | 47 class BrowserPluginGuest; |
48 class BrowserPluginGuestManager; | 48 class BrowserPluginGuestManager; |
49 class DateTimeChooserAndroid; | 49 class DateTimeChooserAndroid; |
50 class DownloadItem; | 50 class DownloadItem; |
| 51 class GeolocationDispatcherHost; |
51 class InterstitialPageImpl; | 52 class InterstitialPageImpl; |
52 class JavaScriptDialogManager; | 53 class JavaScriptDialogManager; |
53 class PowerSaveBlocker; | 54 class PowerSaveBlocker; |
54 class RenderViewHost; | 55 class RenderViewHost; |
55 class RenderViewHostDelegateView; | 56 class RenderViewHostDelegateView; |
56 class RenderViewHostImpl; | 57 class RenderViewHostImpl; |
57 class RenderWidgetHostImpl; | 58 class RenderWidgetHostImpl; |
58 class SavePackage; | 59 class SavePackage; |
59 class SessionStorageNamespaceImpl; | 60 class SessionStorageNamespaceImpl; |
60 class SiteInstance; | 61 class SiteInstance; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 void DidGetResourceResponseStart( | 154 void DidGetResourceResponseStart( |
154 const ResourceRequestDetails& details); | 155 const ResourceRequestDetails& details); |
155 | 156 |
156 // A redirect was received while requesting a resource. | 157 // A redirect was received while requesting a resource. |
157 void DidGetRedirectForResourceRequest( | 158 void DidGetRedirectForResourceRequest( |
158 RenderViewHost* render_view_host, | 159 RenderViewHost* render_view_host, |
159 const ResourceRedirectDetails& details); | 160 const ResourceRedirectDetails& details); |
160 | 161 |
161 WebContentsView* GetView() const; | 162 WebContentsView* GetView() const; |
162 | 163 |
| 164 GeolocationDispatcherHost* geolocation_dispatcher_host() { |
| 165 return geolocation_dispatcher_host_.get(); |
| 166 } |
| 167 |
163 // WebContents ------------------------------------------------------ | 168 // WebContents ------------------------------------------------------ |
164 virtual WebContentsDelegate* GetDelegate() OVERRIDE; | 169 virtual WebContentsDelegate* GetDelegate() OVERRIDE; |
165 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; | 170 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; |
166 virtual NavigationControllerImpl& GetController() OVERRIDE; | 171 virtual NavigationControllerImpl& GetController() OVERRIDE; |
167 virtual const NavigationControllerImpl& GetController() const OVERRIDE; | 172 virtual const NavigationControllerImpl& GetController() const OVERRIDE; |
168 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 173 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
169 virtual const GURL& GetURL() const OVERRIDE; | 174 virtual const GURL& GetURL() const OVERRIDE; |
170 virtual const GURL& GetVisibleURL() const OVERRIDE; | 175 virtual const GURL& GetVisibleURL() const OVERRIDE; |
171 virtual const GURL& GetLastCommittedURL() const OVERRIDE; | 176 virtual const GURL& GetLastCommittedURL() const OVERRIDE; |
172 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; | 177 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 1090 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
1086 ImageDownloadMap image_download_map_; | 1091 ImageDownloadMap image_download_map_; |
1087 | 1092 |
1088 // Whether this WebContents is responsible for displaying a subframe in a | 1093 // Whether this WebContents is responsible for displaying a subframe in a |
1089 // different process from its parent page. | 1094 // different process from its parent page. |
1090 bool is_subframe_; | 1095 bool is_subframe_; |
1091 | 1096 |
1092 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1097 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1093 bool last_dialog_suppressed_; | 1098 bool last_dialog_suppressed_; |
1094 | 1099 |
| 1100 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; |
| 1101 |
1095 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1102 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1096 }; | 1103 }; |
1097 | 1104 |
1098 } // namespace content | 1105 } // namespace content |
1099 | 1106 |
1100 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1107 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |