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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void DidGetResourceResponseStart( | 161 void DidGetResourceResponseStart( |
161 const ResourceRequestDetails& details); | 162 const ResourceRequestDetails& details); |
162 | 163 |
163 // A redirect was received while requesting a resource. | 164 // A redirect was received while requesting a resource. |
164 void DidGetRedirectForResourceRequest( | 165 void DidGetRedirectForResourceRequest( |
165 RenderViewHost* render_view_host, | 166 RenderViewHost* render_view_host, |
166 const ResourceRedirectDetails& details); | 167 const ResourceRedirectDetails& details); |
167 | 168 |
168 WebContentsView* GetView() const; | 169 WebContentsView* GetView() const; |
169 | 170 |
| 171 GeolocationDispatcherHost* geolocation_dispatcher_host() { |
| 172 return geolocation_dispatcher_host_.get(); |
| 173 } |
| 174 |
170 // WebContents ------------------------------------------------------ | 175 // WebContents ------------------------------------------------------ |
171 virtual WebContentsDelegate* GetDelegate() OVERRIDE; | 176 virtual WebContentsDelegate* GetDelegate() OVERRIDE; |
172 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; | 177 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; |
173 virtual NavigationControllerImpl& GetController() OVERRIDE; | 178 virtual NavigationControllerImpl& GetController() OVERRIDE; |
174 virtual const NavigationControllerImpl& GetController() const OVERRIDE; | 179 virtual const NavigationControllerImpl& GetController() const OVERRIDE; |
175 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 180 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
176 virtual const GURL& GetURL() const OVERRIDE; | 181 virtual const GURL& GetURL() const OVERRIDE; |
177 virtual const GURL& GetVisibleURL() const OVERRIDE; | 182 virtual const GURL& GetVisibleURL() const OVERRIDE; |
178 virtual const GURL& GetLastCommittedURL() const OVERRIDE; | 183 virtual const GURL& GetLastCommittedURL() const OVERRIDE; |
179 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; | 184 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 1094 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
1090 ImageDownloadMap image_download_map_; | 1095 ImageDownloadMap image_download_map_; |
1091 | 1096 |
1092 // Whether this WebContents is responsible for displaying a subframe in a | 1097 // Whether this WebContents is responsible for displaying a subframe in a |
1093 // different process from its parent page. | 1098 // different process from its parent page. |
1094 bool is_subframe_; | 1099 bool is_subframe_; |
1095 | 1100 |
1096 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1101 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1097 bool last_dialog_suppressed_; | 1102 bool last_dialog_suppressed_; |
1098 | 1103 |
| 1104 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; |
| 1105 |
1099 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1106 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1100 }; | 1107 }; |
1101 | 1108 |
1102 } // namespace content | 1109 } // namespace content |
1103 | 1110 |
1104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1111 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |