| 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: | 
| Yunlian Jiang | b1640ee | 2014-08-27 16:22:19 -0700 | [diff] [blame] | 13 | virtual ~Sender() {} | 
| Bertrand SIMONNET | 46b49da | 2014-06-25 14:38:07 -0700 | [diff] [blame] | 14 | // 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_ |