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_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 12 matching lines...) Expand all Loading... |
23 class WebMouseWheelEvent; | 23 class WebMouseWheelEvent; |
24 class WebGestureEvent; | 24 class WebGestureEvent; |
25 } | 25 } |
26 | 26 |
27 namespace gfx { | 27 namespace gfx { |
28 class Point; | 28 class Point; |
29 class Rect; | 29 class Rect; |
30 class Size; | 30 class Size; |
31 } | 31 } |
32 | 32 |
| 33 namespace rappor { |
| 34 class RapporService; |
| 35 } |
| 36 |
33 namespace content { | 37 namespace content { |
34 | 38 |
35 class BrowserAccessibilityManager; | 39 class BrowserAccessibilityManager; |
36 class RenderWidgetHostImpl; | 40 class RenderWidgetHostImpl; |
37 class RenderWidgetHostInputEventRouter; | 41 class RenderWidgetHostInputEventRouter; |
38 class RenderViewHostDelegateView; | 42 class RenderViewHostDelegateView; |
39 class TextInputManager; | 43 class TextInputManager; |
40 struct ScreenInfo; | 44 struct ScreenInfo; |
41 struct NativeWebKeyboardEvent; | 45 struct NativeWebKeyboardEvent; |
42 | 46 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 virtual bool IsHidden(); | 213 virtual bool IsHidden(); |
210 | 214 |
211 // Returns the associated RenderViewHostDelegateView*, if possible. | 215 // Returns the associated RenderViewHostDelegateView*, if possible. |
212 virtual RenderViewHostDelegateView* GetDelegateView(); | 216 virtual RenderViewHostDelegateView* GetDelegateView(); |
213 | 217 |
214 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is | 218 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is |
215 // not intended for use with other types of fullscreen, such as HTML | 219 // not intended for use with other types of fullscreen, such as HTML |
216 // fullscreen, and will return nullptr for those cases. | 220 // fullscreen, and will return nullptr for those cases. |
217 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; | 221 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; |
218 | 222 |
| 223 // Returns the Rappor service from browser process for the metric reporting |
| 224 // purposes per url. See getRapporCommittedUrl for getting the url. |
| 225 virtual ::rappor::RapporService* getRapporService(); |
| 226 |
| 227 // Returns the Url of the current page to be used in Rappor metric reporting. |
| 228 virtual std::string getRapporCommittedUrl(); |
| 229 |
219 protected: | 230 protected: |
220 virtual ~RenderWidgetHostDelegate() {} | 231 virtual ~RenderWidgetHostDelegate() {} |
221 }; | 232 }; |
222 | 233 |
223 } // namespace content | 234 } // namespace content |
224 | 235 |
225 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 236 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |