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

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

Issue 2882353002: Implement Ukm Mojo interface. (Closed)
Patch Set: Fix nits 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
« no previous file with comments | « components/ukm/public/mojo_ukm_recorder.cc ('k') | components/ukm/ukm_interface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
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 // ukm::mojom::UkmRecorderInterface:
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
« no previous file with comments | « components/ukm/public/mojo_ukm_recorder.cc ('k') | components/ukm/ukm_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698