blob: 52118340772e36ef0040d123d751229a78fdfea9 [file] [log] [blame]
Bertrand SIMONNET46b49da2014-06-25 14:38:07 -07001// Copyright 2014 The Chromium OS 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 METRICS_UPLOADER_SENDER_H_
6#define METRICS_UPLOADER_SENDER_H_
7
8#include <string>
9
10// Abstract class for a Sender that uploads a metrics message.
11class Sender {
12 public:
Yunlian Jiangb1640ee2014-08-27 16:22:19 -070013 virtual ~Sender() {}
Bertrand SIMONNET46b49da2014-06-25 14:38:07 -070014 // Sends a message |content| with its sha1 hash |hash|
15 virtual bool Send(const std::string& content, const std::string& hash) = 0;
16};
17
18#endif // METRICS_UPLOADER_SENDER_H_