| 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> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "base/process.h" | 16 #include "base/process.h" |
| 17 #include "content/browser/renderer_host/render_view_host_delegate.h" | 17 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 18 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 18 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 19 #include "content/browser/web_contents/navigation_controller_impl.h" | 19 #include "content/browser/web_contents/navigation_controller_impl.h" |
| 20 #include "content/browser/web_contents/render_view_host_manager.h" | 20 #include "content/browser/web_contents/render_view_host_manager.h" |
| 21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 22 #include "content/public/browser/notification_observer.h" | 22 #include "content/public/browser/notification_observer.h" |
| 23 #include "content/public/browser/notification_registrar.h" | 23 #include "content/public/browser/notification_registrar.h" |
| 24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
| 25 #include "content/public/common/content_constants.h" |
| 25 #include "content/public/common/renderer_preferences.h" | 26 #include "content/public/common/renderer_preferences.h" |
| 26 #include "content/public/common/three_d_api_types.h" | 27 #include "content/public/common/three_d_api_types.h" |
| 27 #include "net/base/load_states.h" | 28 #include "net/base/load_states.h" |
| 28 #include "ui/gfx/rect_f.h" | 29 #include "ui/gfx/rect_f.h" |
| 29 #include "ui/gfx/size.h" | 30 #include "ui/gfx/size.h" |
| 30 #include "webkit/glue/resource_type.h" | 31 #include "webkit/glue/resource_type.h" |
| 31 | 32 |
| 32 struct BrowserPluginHostMsg_ResizeGuest_Params; | 33 struct BrowserPluginHostMsg_ResizeGuest_Params; |
| 33 struct ViewHostMsg_DateTimeDialogValue_Params; | 34 struct ViewHostMsg_DateTimeDialogValue_Params; |
| 34 struct ViewMsg_PostMessage_Params; | 35 struct ViewMsg_PostMessage_Params; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 virtual int GetMaximumZoomPercent() const OVERRIDE; | 267 virtual int GetMaximumZoomPercent() const OVERRIDE; |
| 267 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 268 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 268 virtual int GetContentRestrictions() const OVERRIDE; | 269 virtual int GetContentRestrictions() const OVERRIDE; |
| 269 virtual WebUI::TypeID GetWebUITypeForCurrentState() OVERRIDE; | 270 virtual WebUI::TypeID GetWebUITypeForCurrentState() OVERRIDE; |
| 270 virtual WebUI* GetWebUIForCurrentState() OVERRIDE; | 271 virtual WebUI* GetWebUIForCurrentState() OVERRIDE; |
| 271 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; | 272 virtual bool GotResponseToLockMouseRequest(bool allowed) OVERRIDE; |
| 272 virtual bool HasOpener() const OVERRIDE; | 273 virtual bool HasOpener() const OVERRIDE; |
| 273 virtual void DidChooseColorInColorChooser(int color_chooser_id, | 274 virtual void DidChooseColorInColorChooser(int color_chooser_id, |
| 274 SkColor color) OVERRIDE; | 275 SkColor color) OVERRIDE; |
| 275 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE; | 276 virtual void DidEndColorChooser(int color_chooser_id) OVERRIDE; |
| 276 virtual int DownloadFavicon(const GURL& url, int image_size, | 277 virtual int DownloadFavicon(const GURL& url, |
| 278 DownloadImageType image_type, |
| 279 int image_size, |
| 277 const FaviconDownloadCallback& callback) OVERRIDE; | 280 const FaviconDownloadCallback& callback) OVERRIDE; |
| 278 | 281 |
| 279 // Implementation of PageNavigator. | 282 // Implementation of PageNavigator. |
| 280 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; | 283 virtual WebContents* OpenURL(const OpenURLParams& params) OVERRIDE; |
| 281 | 284 |
| 282 // Implementation of IPC::Sender. | 285 // Implementation of IPC::Sender. |
| 283 virtual bool Send(IPC::Message* message) OVERRIDE; | 286 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 284 | 287 |
| 285 // RenderViewHostDelegate ---------------------------------------------------- | 288 // RenderViewHostDelegate ---------------------------------------------------- |
| 286 | 289 |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 // Maps the ids of pending favicon downloads to their callbacks | 887 // Maps the ids of pending favicon downloads to their callbacks |
| 885 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; | 888 typedef std::map<int, FaviconDownloadCallback> FaviconDownloadMap; |
| 886 FaviconDownloadMap favicon_download_map_; | 889 FaviconDownloadMap favicon_download_map_; |
| 887 | 890 |
| 888 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 891 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 889 }; | 892 }; |
| 890 | 893 |
| 891 } // namespace content | 894 } // namespace content |
| 892 | 895 |
| 893 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 896 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |