blob: 70d29cb7eeec57af90cc5bdb9f24a062db12197b [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:
13 // Sends a message |content| with its sha1 hash |hash|
14 virtual bool Send(const std::string& content, const std::string& hash) = 0;
15};
16
17#endif // METRICS_UPLOADER_SENDER_H_