Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 2877673003: Expose UkmService to content/ (Closed)
Patch Set: Extract repoting of input metric into another CL Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14 matching lines...) Expand all
25 25
26 namespace gfx { 26 namespace gfx {
27 class Point; 27 class Point;
28 class Size; 28 class Size;
29 } 29 }
30 30
31 namespace rappor { 31 namespace rappor {
32 class Sample; 32 class Sample;
33 } 33 }
34 34
35 namespace ukm {
36 class UkmService;
37 }
38
35 namespace content { 39 namespace content {
36 40
37 class BrowserAccessibilityManager; 41 class BrowserAccessibilityManager;
38 class RenderWidgetHostImpl; 42 class RenderWidgetHostImpl;
39 class RenderWidgetHostInputEventRouter; 43 class RenderWidgetHostInputEventRouter;
40 class RenderViewHostDelegateView; 44 class RenderViewHostDelegateView;
41 class TextInputManager; 45 class TextInputManager;
42 class WebContents; 46 class WebContents;
43 enum class KeyboardEventProcessingResult; 47 enum class KeyboardEventProcessingResult;
44 struct ScreenInfo; 48 struct ScreenInfo;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // |render_widget_host| is focused and that its owning WebContents is also 237 // |render_widget_host| is focused and that its owning WebContents is also
234 // the focused WebContents. 238 // the focused WebContents.
235 virtual void FocusOwningWebContents( 239 virtual void FocusOwningWebContents(
236 RenderWidgetHostImpl* render_widget_host) {} 240 RenderWidgetHostImpl* render_widget_host) {}
237 241
238 // Augment a Rappor sample with eTLD+1 context. The caller is still 242 // Augment a Rappor sample with eTLD+1 context. The caller is still
239 // responsible for logging the sample to the RapporService. Returns false 243 // responsible for logging the sample to the RapporService. Returns false
240 // if the eTLD+1 is not known for |render_widget_host|. 244 // if the eTLD+1 is not known for |render_widget_host|.
241 virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample); 245 virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample);
242 246
247 // Update UkmService for the given source with the URL. Returns false
Charlie Reis 2017/05/24 16:28:32 Can you elaborate what UkmService is here? I didn
Navid Zolghadr 2017/05/25 15:45:46 Done.
248 // if the Utl is not known for |render_widget_host|.
Charlie Reis 2017/05/24 16:28:32 What is Utl?
Navid Zolghadr 2017/05/25 15:45:46 Done.
249 virtual bool UpdateUrlForUkmSource(ukm::UkmService* service,
Charlie Reis 2017/05/24 16:28:32 This doesn't look like it ever returns false in pr
Navid Zolghadr 2017/05/25 15:45:46 Done.
250 int32_t ukm_source_id);
251
243 // Notifies the delegate that a focused editable element has been touched 252 // Notifies the delegate that a focused editable element has been touched
244 // inside this RenderWidgetHost. If |editable| is true then the focused 253 // inside this RenderWidgetHost. If |editable| is true then the focused
245 // element accepts text input. 254 // element accepts text input.
246 virtual void FocusedNodeTouched(bool editable) {} 255 virtual void FocusedNodeTouched(bool editable) {}
247 256
248 // Return this object cast to a WebContents, if it is one. If the object is 257 // Return this object cast to a WebContents, if it is one. If the object is
249 // not a WebContents, returns nullptr. 258 // not a WebContents, returns nullptr.
250 virtual WebContents* GetAsWebContents(); 259 virtual WebContents* GetAsWebContents();
251 260
252 // Notifies that a CompositorFrame was received from the renderer. 261 // Notifies that a CompositorFrame was received from the renderer.
253 virtual void DidReceiveCompositorFrame() {} 262 virtual void DidReceiveCompositorFrame() {}
254 263
255 protected: 264 protected:
256 virtual ~RenderWidgetHostDelegate() {} 265 virtual ~RenderWidgetHostDelegate() {}
257 }; 266 };
258 267
259 } // namespace content 268 } // namespace content
260 269
261 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 270 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698