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

Side by Side Diff: components/metrics/metrics_log_uploader.h

Issue 291153013: Make MetricsService upload logs through an interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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_METRICS_METRICS_LOG_UPLOADER_H_
6 #define COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11
12 namespace metrics {
13
14 // Interface used by MetricsService to upload UMA logs.
15 class MetricsLogUploader {
16 public:
17 virtual ~MetricsLogUploader() {}
18
19 // Uploads a log with the specified |log_data| and |log_hash|.
20 virtual bool UploadLog(const std::string& log_data,
21 const std::string& log_hash) = 0;
22 };
23
24 } // namespace metrics
25
26 #endif // COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698