| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 class RenderWidgetHostViewPort; | 56 class RenderWidgetHostViewPort; |
| 57 class SavePackage; | 57 class SavePackage; |
| 58 class SessionStorageNamespaceImpl; | 58 class SessionStorageNamespaceImpl; |
| 59 class SiteInstance; | 59 class SiteInstance; |
| 60 class TestWebContents; | 60 class TestWebContents; |
| 61 class WebContentsDelegate; | 61 class WebContentsDelegate; |
| 62 class WebContentsImpl; | 62 class WebContentsImpl; |
| 63 class WebContentsObserver; | 63 class WebContentsObserver; |
| 64 class WebContentsViewPort; | 64 class WebContentsViewPort; |
| 65 class WebContentsViewDelegate; | 65 class WebContentsViewDelegate; |
| 66 struct ColorSuggestion; |
| 66 struct FaviconURL; | 67 struct FaviconURL; |
| 67 struct LoadNotificationDetails; | 68 struct LoadNotificationDetails; |
| 68 | 69 |
| 69 // Factory function for the implementations that content knows about. Takes | 70 // Factory function for the implementations that content knows about. Takes |
| 70 // ownership of |delegate|. | 71 // ownership of |delegate|. |
| 71 WebContentsViewPort* CreateWebContentsView( | 72 WebContentsViewPort* CreateWebContentsView( |
| 72 WebContentsImpl* web_contents, | 73 WebContentsImpl* web_contents, |
| 73 WebContentsViewDelegate* delegate, | 74 WebContentsViewDelegate* delegate, |
| 74 RenderViewHostDelegateView** render_view_host_delegate_view); | 75 RenderViewHostDelegateView** render_view_host_delegate_view); |
| 75 | 76 |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 const std::vector<gfx::RectF>& rects, | 635 const std::vector<gfx::RectF>& rects, |
| 635 const gfx::RectF& active_rect); | 636 const gfx::RectF& active_rect); |
| 636 | 637 |
| 637 void OnOpenDateTimeDialog( | 638 void OnOpenDateTimeDialog( |
| 638 const ViewHostMsg_DateTimeDialogValue_Params& value); | 639 const ViewHostMsg_DateTimeDialogValue_Params& value); |
| 639 void OnJavaBridgeGetChannelHandle(IPC::Message* reply_msg); | 640 void OnJavaBridgeGetChannelHandle(IPC::Message* reply_msg); |
| 640 #endif | 641 #endif |
| 641 void OnCrashedPlugin(const base::FilePath& plugin_path, | 642 void OnCrashedPlugin(const base::FilePath& plugin_path, |
| 642 base::ProcessId plugin_pid); | 643 base::ProcessId plugin_pid); |
| 643 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 644 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
| 644 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 645 void OnOpenColorChooser(int color_chooser_id, |
| 646 SkColor color, |
| 647 const std::vector<ColorSuggestion>& suggestions); |
| 645 void OnEndColorChooser(int color_chooser_id); | 648 void OnEndColorChooser(int color_chooser_id); |
| 646 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 649 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
| 647 void OnPepperPluginHung(int plugin_child_id, | 650 void OnPepperPluginHung(int plugin_child_id, |
| 648 const base::FilePath& path, | 651 const base::FilePath& path, |
| 649 bool is_hung); | 652 bool is_hung); |
| 650 void OnWebUISend(const GURL& source_url, | 653 void OnWebUISend(const GURL& source_url, |
| 651 const std::string& name, | 654 const std::string& name, |
| 652 const base::ListValue& args); | 655 const base::ListValue& args); |
| 653 void OnRequestPpapiBrokerPermission(int routing_id, | 656 void OnRequestPpapiBrokerPermission(int routing_id, |
| 654 const GURL& url, | 657 const GURL& url, |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 // Maps the ids of pending image downloads to their callbacks | 978 // Maps the ids of pending image downloads to their callbacks |
| 976 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 979 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 977 ImageDownloadMap image_download_map_; | 980 ImageDownloadMap image_download_map_; |
| 978 | 981 |
| 979 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 982 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 980 }; | 983 }; |
| 981 | 984 |
| 982 } // namespace content | 985 } // namespace content |
| 983 | 986 |
| 984 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 987 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |