| 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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 | 857 |
| 858 // Traverses all the RenderFrameHosts in the FrameTree and creates a set | 858 // Traverses all the RenderFrameHosts in the FrameTree and creates a set |
| 859 // all the unique RenderWidgetHostViews. | 859 // all the unique RenderWidgetHostViews. |
| 860 std::set<RenderWidgetHostView*> GetRenderWidgetHostViewsInTree(); | 860 std::set<RenderWidgetHostView*> GetRenderWidgetHostViewsInTree(); |
| 861 | 861 |
| 862 // Called with the result of a DownloadImage() request. | 862 // Called with the result of a DownloadImage() request. |
| 863 void OnDidDownloadImage(const ImageDownloadCallback& callback, | 863 void OnDidDownloadImage(const ImageDownloadCallback& callback, |
| 864 int id, | 864 int id, |
| 865 const GURL& image_url, | 865 const GURL& image_url, |
| 866 int32_t http_status_code, | 866 int32_t http_status_code, |
| 867 mojo::Array<skia::mojom::BitmapPtr> images, | 867 mojo::Array<SkBitmap> images, |
| 868 mojo::Array<mojo::SizePtr> original_image_sizes); | 868 mojo::Array<mojo::SizePtr> original_image_sizes); |
| 869 | 869 |
| 870 // Callback function when showing JavaScript dialogs. Takes in a routing ID | 870 // Callback function when showing JavaScript dialogs. Takes in a routing ID |
| 871 // pair to identify the RenderFrameHost that opened the dialog, because it's | 871 // pair to identify the RenderFrameHost that opened the dialog, because it's |
| 872 // possible for the RenderFrameHost to be deleted by the time this is called. | 872 // possible for the RenderFrameHost to be deleted by the time this is called. |
| 873 void OnDialogClosed(int render_process_id, | 873 void OnDialogClosed(int render_process_id, |
| 874 int render_frame_id, | 874 int render_frame_id, |
| 875 IPC::Message* reply_msg, | 875 IPC::Message* reply_msg, |
| 876 bool dialog_was_suppressed, | 876 bool dialog_was_suppressed, |
| 877 bool success, | 877 bool success, |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 // Adds/removes a callback called on creation of each new WebContents. | 1401 // Adds/removes a callback called on creation of each new WebContents. |
| 1402 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1402 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1403 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1403 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1404 | 1404 |
| 1405 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1405 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1406 }; | 1406 }; |
| 1407 | 1407 |
| 1408 } // namespace content | 1408 } // namespace content |
| 1409 | 1409 |
| 1410 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1410 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |