| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 | 883 |
| 884 // Traverses all the RenderFrameHosts in the FrameTree and creates a set | 884 // Traverses all the RenderFrameHosts in the FrameTree and creates a set |
| 885 // all the unique RenderWidgetHostViews. | 885 // all the unique RenderWidgetHostViews. |
| 886 std::set<RenderWidgetHostView*> GetRenderWidgetHostViewsInTree(); | 886 std::set<RenderWidgetHostView*> GetRenderWidgetHostViewsInTree(); |
| 887 | 887 |
| 888 // Called with the result of a DownloadImage() request. | 888 // Called with the result of a DownloadImage() request. |
| 889 void OnDidDownloadImage(const ImageDownloadCallback& callback, | 889 void OnDidDownloadImage(const ImageDownloadCallback& callback, |
| 890 int id, | 890 int id, |
| 891 const GURL& image_url, | 891 const GURL& image_url, |
| 892 int32_t http_status_code, | 892 int32_t http_status_code, |
| 893 mojo::Array<SkBitmap> images, | 893 const std::vector<SkBitmap>& images, |
| 894 mojo::Array<gfx::Size> original_image_sizes); | 894 const std::vector<gfx::Size>& original_image_sizes); |
| 895 | 895 |
| 896 // Callback function when showing JavaScript dialogs. Takes in a routing ID | 896 // Callback function when showing JavaScript dialogs. Takes in a routing ID |
| 897 // pair to identify the RenderFrameHost that opened the dialog, because it's | 897 // pair to identify the RenderFrameHost that opened the dialog, because it's |
| 898 // possible for the RenderFrameHost to be deleted by the time this is called. | 898 // possible for the RenderFrameHost to be deleted by the time this is called. |
| 899 void OnDialogClosed(int render_process_id, | 899 void OnDialogClosed(int render_process_id, |
| 900 int render_frame_id, | 900 int render_frame_id, |
| 901 IPC::Message* reply_msg, | 901 IPC::Message* reply_msg, |
| 902 bool dialog_was_suppressed, | 902 bool dialog_was_suppressed, |
| 903 bool success, | 903 bool success, |
| 904 const base::string16& user_input); | 904 const base::string16& user_input); |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 // Adds/removes a callback called on creation of each new WebContents. | 1446 // Adds/removes a callback called on creation of each new WebContents. |
| 1447 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1447 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1448 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1448 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1449 | 1449 |
| 1450 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1450 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1451 }; | 1451 }; |
| 1452 | 1452 |
| 1453 } // namespace content | 1453 } // namespace content |
| 1454 | 1454 |
| 1455 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1455 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |