Bertrand SIMONNET | 46b49da | 2014-06-25 14:38:07 -0700 | [diff] [blame^] | 1 | // 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. |
| 11 | class 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_ |