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

Side by Side Diff: components/translate/core/common/translation_logging_helper.h

Issue 2913593002: Implementation of translation event logging. (Closed)
Patch Set: fix 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 #ifndef COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_
6 #define COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_
7
8 #include <stdint.h>
9
10 namespace metrics {
11 class TranslateEventProto;
12 } // namespace metrics
13
14 namespace sync_pb {
15 class UserEventSpecifics;
16 } // namespace sync_pb
17
18 namespace translate {
19
20 // Construct the sync_pb::Translation proto.
21 // If the event is the event that we care about, will return true, otherwise,
22 // will return false.
23 bool ConstructTranslateEvent(
24 int64_t navigation_id,
25 const metrics::TranslateEventProto& translate_event,
26 sync_pb::UserEventSpecifics* const specifics);
27 } // namespace translate
28
29 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_
OLDNEW
« no previous file with comments | « components/translate/core/common/BUILD.gn ('k') | components/translate/core/common/translation_logging_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698