| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 class RenderWidgetHostViewPort; | 55 class RenderWidgetHostViewPort; |
| 56 class SavePackage; | 56 class SavePackage; |
| 57 class SessionStorageNamespaceImpl; | 57 class SessionStorageNamespaceImpl; |
| 58 class SiteInstance; | 58 class SiteInstance; |
| 59 class TestWebContents; | 59 class TestWebContents; |
| 60 class WebContentsDelegate; | 60 class WebContentsDelegate; |
| 61 class WebContentsImpl; | 61 class WebContentsImpl; |
| 62 class WebContentsObserver; | 62 class WebContentsObserver; |
| 63 class WebContentsViewPort; | 63 class WebContentsViewPort; |
| 64 class WebContentsViewDelegate; | 64 class WebContentsViewDelegate; |
| 65 struct ColorSuggestion; |
| 65 struct FaviconURL; | 66 struct FaviconURL; |
| 66 struct LoadNotificationDetails; | 67 struct LoadNotificationDetails; |
| 67 | 68 |
| 68 // Factory function for the implementations that content knows about. Takes | 69 // Factory function for the implementations that content knows about. Takes |
| 69 // ownership of |delegate|. | 70 // ownership of |delegate|. |
| 70 WebContentsViewPort* CreateWebContentsView( | 71 WebContentsViewPort* CreateWebContentsView( |
| 71 WebContentsImpl* web_contents, | 72 WebContentsImpl* web_contents, |
| 72 WebContentsViewDelegate* delegate, | 73 WebContentsViewDelegate* delegate, |
| 73 RenderViewHostDelegateView** render_view_host_delegate_view); | 74 RenderViewHostDelegateView** render_view_host_delegate_view); |
| 74 | 75 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 void OnFindMatchRectsReply(int version, | 596 void OnFindMatchRectsReply(int version, |
| 596 const std::vector<gfx::RectF>& rects, | 597 const std::vector<gfx::RectF>& rects, |
| 597 const gfx::RectF& active_rect); | 598 const gfx::RectF& active_rect); |
| 598 | 599 |
| 599 void OnOpenDateTimeDialog( | 600 void OnOpenDateTimeDialog( |
| 600 const ViewHostMsg_DateTimeDialogValue_Params& value); | 601 const ViewHostMsg_DateTimeDialogValue_Params& value); |
| 601 #endif | 602 #endif |
| 602 void OnCrashedPlugin(const base::FilePath& plugin_path, | 603 void OnCrashedPlugin(const base::FilePath& plugin_path, |
| 603 base::ProcessId plugin_pid); | 604 base::ProcessId plugin_pid); |
| 604 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 605 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 605 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 606 void OnOpenColorChooser(int color_chooser_id, |
| 607 SkColor color, |
| 608 const std::vector<ColorSuggestion>& suggestions); |
| 606 void OnEndColorChooser(int color_chooser_id); | 609 void OnEndColorChooser(int color_chooser_id); |
| 607 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 610 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 608 void OnPepperPluginHung(int plugin_child_id, | 611 void OnPepperPluginHung(int plugin_child_id, |
| 609 const base::FilePath& path, | 612 const base::FilePath& path, |
| 610 bool is_hung); | 613 bool is_hung); |
| 611 void OnWebUISend(const GURL& source_url, | 614 void OnWebUISend(const GURL& source_url, |
| 612 const std::string& name, | 615 const std::string& name, |
| 613 const base::ListValue& args); | 616 const base::ListValue& args); |
| 614 void OnRequestPpapiBrokerPermission(int routing_id, | 617 void OnRequestPpapiBrokerPermission(int routing_id, |
| 615 const GURL& url, | 618 const GURL& url, |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 // Maps the ids of pending image downloads to their callbacks | 957 // Maps the ids of pending image downloads to their callbacks |
| 955 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 958 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 956 ImageDownloadMap image_download_map_; | 959 ImageDownloadMap image_download_map_; |
| 957 | 960 |
| 958 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 961 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 959 }; | 962 }; |
| 960 | 963 |
| 961 } // namespace content | 964 } // namespace content |
| 962 | 965 |
| 963 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 966 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |