| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 REMOTING_BASE_TELEMETRY_LOG_WRITER_H_ | 5 #ifndef REMOTING_BASE_TELEMETRY_LOG_WRITER_H_ |
| 6 #define REMOTING_BASE_TELEMETRY_LOG_WRITER_H_ | 6 #define REMOTING_BASE_TELEMETRY_LOG_WRITER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | |
| 14 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 15 #include "base/values.h" | 14 #include "base/values.h" |
| 16 #include "remoting/base/chromoting_event.h" | 15 #include "remoting/base/chromoting_event.h" |
| 17 #include "remoting/base/chromoting_event_log_writer.h" | 16 #include "remoting/base/chromoting_event_log_writer.h" |
| 18 #include "remoting/base/url_request.h" | 17 #include "remoting/base/url_request.h" |
| 19 | 18 |
| 20 namespace remoting { | 19 namespace remoting { |
| 21 | 20 |
| 22 // TelemetryLogWriter sends log entries (ChromotingEvent) to the telemetry | 21 // TelemetryLogWriter sends log entries (ChromotingEvent) to the telemetry |
| 23 // server. | 22 // server. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 61 |
| 63 // Entries being sent. | 62 // Entries being sent. |
| 64 // These will be pushed back to pending_entries if error occurs. | 63 // These will be pushed back to pending_entries if error occurs. |
| 65 std::deque<ChromotingEvent> sending_entries_; | 64 std::deque<ChromotingEvent> sending_entries_; |
| 66 | 65 |
| 67 DISALLOW_COPY_AND_ASSIGN(TelemetryLogWriter); | 66 DISALLOW_COPY_AND_ASSIGN(TelemetryLogWriter); |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 } // namespace remoting | 69 } // namespace remoting |
| 71 #endif // REMOTING_BASE_TELEMETRY_LOG_WRITER_H_ | 70 #endif // REMOTING_BASE_TELEMETRY_LOG_WRITER_H_ |
| OLD | NEW |