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" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Mojo handlers. | 60 // Mojo handlers. |
61 void OnImageContextMenuRendererRequest( | 61 void OnImageContextMenuRendererRequest( |
62 const service_manager::BindSourceInfo& source_info, | 62 const service_manager::BindSourceInfo& source_info, |
63 chrome::mojom::ImageContextMenuRendererRequest request); | 63 chrome::mojom::ImageContextMenuRendererRequest request); |
64 void OnThumbnailCapturerRequest( | 64 void OnThumbnailCapturerRequest( |
65 const service_manager::BindSourceInfo& source_info, | 65 const service_manager::BindSourceInfo& source_info, |
66 chrome::mojom::ThumbnailCapturerRequest request); | 66 chrome::mojom::ThumbnailCapturerRequest request); |
67 | 67 |
68 // IPC handlers | 68 // IPC handlers |
| 69 void OnGetWebApplicationInfo(); |
69 void OnSetIsPrerendering(prerender::PrerenderMode mode); | 70 void OnSetIsPrerendering(prerender::PrerenderMode mode); |
70 void OnRequestThumbnailForContextNode( | 71 void OnRequestThumbnailForContextNode( |
71 int thumbnail_min_area_pixels, | 72 int thumbnail_min_area_pixels, |
72 const gfx::Size& thumbnail_max_size_pixels, | 73 const gfx::Size& thumbnail_max_size_pixels, |
73 int callback_id); | 74 int callback_id); |
74 void OnPrintNodeUnderContextMenu(); | 75 void OnPrintNodeUnderContextMenu(); |
75 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); | 76 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); |
76 | 77 |
77 // Captures page information using the top (main) frame of a frame tree. | 78 // Captures page information using the top (main) frame of a frame tree. |
78 // Currently, this page information is just the text content of the all | 79 // Currently, this page information is just the text content of the all |
(...skipping 12 matching lines...) Expand all Loading... |
91 mojo::BindingSet<chrome::mojom::ImageContextMenuRenderer> | 92 mojo::BindingSet<chrome::mojom::ImageContextMenuRenderer> |
92 image_context_menu_renderer_bindings_; | 93 image_context_menu_renderer_bindings_; |
93 | 94 |
94 mojo::BindingSet<chrome::mojom::ThumbnailCapturer> | 95 mojo::BindingSet<chrome::mojom::ThumbnailCapturer> |
95 thumbnail_capturer_bindings_; | 96 thumbnail_capturer_bindings_; |
96 | 97 |
97 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); | 98 DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); |
98 }; | 99 }; |
99 | 100 |
100 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ | 101 #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |