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

Side by Side Diff: services/resource_coordinator/public/interfaces/service_callbacks.mojom

Issue 2938443002: [GRC] UKM Support (Closed)
Patch Set: Refactor Created 3 years, 6 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module resource_coordinator.mojom;
6
7 import "components/ukm/public/interfaces/ukm_interface.mojom";
8
9 // This class is intended to provide an interface to register mojo interfaces th at
10 // are not currently accessible to the ResourceCoordinatorService (resource_coor dinator)
11 // due to software layering issues. For example (and the reason for this interfa ce),
12 // the UKM mojo interface lives within the content_browser service which is not accesible
oystein (OOO til 10th of July) 2017/06/22 20:27:02 s/accesible/accessible/ I'd reword this a little
matthalp 2017/06/22 22:59:31 Done. Let me know if this could be improved furthe
13 // to anything within services/* as content_browser corresponds to code within c hrome/*.
14 // As a result, ServiceCallbacks interface is strategically called within conten t_browser
15 // to pass in the initialized UkmRecorderInterfacePtr.
16 interface ServiceCallbacks {
17 // Checks to see if the resource_coordinator service is already active. Any ca ll to
18 // EnsureUkmRecorderInterface should be enclosed in the callback and called on ly
19 // when active == true to avoid creating an excessive number of UkmRecorderInt erface
20 // mojo connections as the resource_coordinator service will ignore the UkmRec orderInterface
21 // passed into EnsureUkmRecorderInterface if it is already active.
22 IsUkmRecorderInterfaceInitialized() => (bool ukm_recorder_already_initialized) ;
23
24 SetUkmRecorderInterface(ukm.mojom.UkmRecorderInterface ukm_recorder_interface) ;
25 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698