OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ |
6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "chrome/common/image_context_menu_renderer.mojom.h" | 10 #include "chrome/common/image_context_menu_renderer.mojom.h" |
11 #include "chrome/common/prerender_types.h" | 11 #include "chrome/common/prerender_types.h" |
12 #include "chrome/common/thumbnail_capturer.mojom.h" | 12 #include "chrome/common/thumbnail_capturer.mojom.h" |
13 #include "content/public/renderer/render_frame_observer.h" | 13 #include "content/public/renderer/render_frame_observer.h" |
14 #include "mojo/public/cpp/bindings/binding_set.h" | 14 #include "mojo/public/cpp/bindings/binding_set.h" |
| 15 #include "services/service_manager/public/cpp/bind_source_info.h" |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Size; | 18 class Size; |
18 } | 19 } |
19 | 20 |
20 namespace safe_browsing { | 21 namespace safe_browsing { |
21 class PhishingClassifierDelegate; | 22 class PhishingClassifierDelegate; |
22 } | 23 } |
23 | 24 |
24 namespace translate { | 25 namespace translate { |
(...skipping 26 matching lines...) Expand all Loading... |
51 void RequestReloadImageForContextNode() override; | 52 void RequestReloadImageForContextNode() override; |
52 | 53 |
53 // chrome::mojom::ThumbnailCapturer: | 54 // chrome::mojom::ThumbnailCapturer: |
54 void RequestThumbnailForContextNode( | 55 void RequestThumbnailForContextNode( |
55 int32_t thumbnail_min_area_pixels, | 56 int32_t thumbnail_min_area_pixels, |
56 const gfx::Size& thumbnail_max_size_pixels, | 57 const gfx::Size& thumbnail_max_size_pixels, |
57 const RequestThumbnailForContextNodeCallback& callback) override; | 58 const RequestThumbnailForContextNodeCallback& callback) override; |
58 | 59 |
59 // Mojo handlers. | 60 // Mojo handlers. |
60 void OnImageContextMenuRendererRequest( | 61 void OnImageContextMenuRendererRequest( |
| 62 const service_manager::BindSourceInfo& source_info, |
61 chrome::mojom::ImageContextMenuRendererRequest request); | 63 chrome::mojom::ImageContextMenuRendererRequest request); |
62 void OnThumbnailCapturerRequest( | 64 void OnThumbnailCapturerRequest( |
| 65 const service_manager::BindSourceInfo& source_info, |
63 chrome::mojom::ThumbnailCapturerRequest request); | 66 chrome::mojom::ThumbnailCapturerRequest request); |
64 | 67 |
65 // IPC handlers | 68 // IPC handlers |
66 void OnSetIsPrerendering(prerender::PrerenderMode mode); | 69 void OnSetIsPrerendering(prerender::PrerenderMode mode); |
67 void OnRequestThumbnailForContextNode( | 70 void OnRequestThumbnailForContextNode( |
68 int thumbnail_min_area_pixels, | 71 int thumbnail_min_area_pixels, |
69 const gfx::Size& thumbnail_max_size_pixels, | 72 const gfx::Size& thumbnail_max_size_pixels, |
70 int callback_id); | 73 int callback_id); |
71 void OnPrintNodeUnderContextMenu(); | 74 void OnPrintNodeUnderContextMenu(); |
72 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); | 75 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); |
(...skipping 15 matching lines...) Expand all Loading... |
88 mojo::BindingSet<chrome::mojom::ImageContextMenuRenderer> | 91 mojo::BindingSet<chrome::mojom::ImageContextMenuRenderer> |
89 image_context_menu_renderer_bindings_; | 92 image_context_menu_renderer_bindings_; |
90 | 93 |
91 mojo::BindingSet<chrome::mojom::ThumbnailCapturer> | 94 mojo::BindingSet<chrome::mojom::ThumbnailCapturer> |
92 thumbnail_capturer_bindings_; | 95 thumbnail_capturer_bindings_; |
93 | 96 |
94 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); | 97 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); |
95 }; | 98 }; |
96 | 99 |
97 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ | 100 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |