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

Side by Side Diff: components/ukm/ukm_interface.h

Issue 2882353002: Implement Ukm Mojo interface. (Closed)
Patch Set: Move example to comment 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
(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 #ifndef COMPONENTS_UKM_UKM_INTERFACE_H_
6 #define COMPONENTS_UKM_UKM_INTERFACE_H_
7
8 #include "components/ukm/public/interfaces/ukm_interface.mojom.h"
oystein (OOO til 10th of July) 2017/05/17 01:16:18 We're missing ukm_interface.mojom from this CL, I
Steven Holte 2017/05/17 17:40:17 This one is dependent on the other CL.
9
10 namespace service_manager {
11 struct BindSourceInfo;
12 }
13
14 namespace ukm {
15
16 class UkmRecorder;
17
18 class UkmInterface : public mojom::UkmRecorderInterface {
19 public:
20 explicit UkmInterface(UkmRecorder* ukm_recorder);
21 ~UkmInterface() override;
22
23 static void Create(UkmRecorder* ukm_recorder,
24 const service_manager::BindSourceInfo& source_info,
25 mojom::UkmRecorderInterfaceRequest request);
26
27 private:
28 // rappor::mojom::UkmRecorderInterface:
oystein (OOO til 10th of July) 2017/05/17 01:16:18 s/rappor/ukm/
Steven Holte 2017/05/17 17:40:17 Done.
29 void AddEntry(mojom::UkmEntryPtr entry) override;
30
31 UkmRecorder* ukm_recorder_;
32
33 DISALLOW_COPY_AND_ASSIGN(UkmInterface);
34 };
35
36 } // namespace ukm
37
38 #endif // COMPONENTS_UKM_UKM_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698