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