| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_ | 5 #ifndef COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_ |
| 6 #define COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_ | 6 #define COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/callback.h" | 10 #include "base/callback.h" |
| 12 #include "base/macros.h" | 11 #include "base/macros.h" |
| 13 | 12 |
| 14 namespace metrics { | 13 namespace metrics { |
| 15 | 14 |
| 16 // MetricsLogUploader is an abstract base class for uploading UMA logs on behalf | 15 // MetricsLogUploader is an abstract base class for uploading UMA logs on behalf |
| 17 // of MetricsService. | 16 // of MetricsService. |
| 18 class MetricsLogUploader { | 17 class MetricsLogUploader { |
| 19 public: | 18 public: |
| 20 // Constructs the uploader that will upload logs to the specified |server_url| | 19 // Constructs the uploader that will upload logs to the specified |server_url| |
| (...skipping 15 matching lines...) Expand all Loading... |
| 36 const std::string mime_type_; | 35 const std::string mime_type_; |
| 37 const base::Callback<void(int)> on_upload_complete_; | 36 const base::Callback<void(int)> on_upload_complete_; |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(MetricsLogUploader); | 39 DISALLOW_COPY_AND_ASSIGN(MetricsLogUploader); |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 } // namespace metrics | 42 } // namespace metrics |
| 44 | 43 |
| 45 #endif // COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_ | 44 #endif // COMPONENTS_METRICS_METRICS_LOG_UPLOADER_H_ |
| OLD | NEW |