Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: remoting/client/client_telemetry_logger.h

Issue 1972793002: TelemetryLogWriter cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CLIENT_CLIENT_TELEMETRY_LOGGER_H_ 5 #ifndef REMOTING_CLIENT_CLIENT_TELEMETRY_LOGGER_H_
6 #define REMOTING_CLIENT_CLIENT_TELEMETRY_LOGGER_H_ 6 #define REMOTING_CLIENT_CLIENT_TELEMETRY_LOGGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "remoting/base/chromoting_event.h"
15 #include "remoting/base/chromoting_event_log_writer.h"
13 #include "remoting/base/url_request.h" 16 #include "remoting/base/url_request.h"
14 #include "remoting/protocol/connection_to_host.h" 17 #include "remoting/protocol/connection_to_host.h"
15 #include "remoting/protocol/performance_tracker.h" 18 #include "remoting/protocol/performance_tracker.h"
16 #include "remoting/signaling/chromoting_event.h"
17 #include "remoting/signaling/chromoting_event_log_writer.h"
18 19
19 namespace remoting { 20 namespace remoting {
20 21
21 // ClientTelemetryLogger sends client log entries to the telemetry server. 22 // ClientTelemetryLogger sends client log entries to the telemetry server.
22 // The logger should be run entirely on one single thread. 23 // The logger should be run entirely on one single thread.
23 // TODO(yuweih): Implement new features that session_logger.js provides. 24 // TODO(yuweih): Implement new features that session_logger.js provides.
24 class ClientTelemetryLogger { 25 class ClientTelemetryLogger {
25 public: 26 public:
26 explicit ClientTelemetryLogger(ChromotingEvent::Mode mode); 27 explicit ClientTelemetryLogger(ChromotingEvent::Mode mode);
27 ~ClientTelemetryLogger(); 28 ~ClientTelemetryLogger();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 std::unique_ptr<ChromotingEventLogWriter> log_writer_; 96 std::unique_ptr<ChromotingEventLogWriter> log_writer_;
96 97
97 base::ThreadChecker thread_checker_; 98 base::ThreadChecker thread_checker_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(ClientTelemetryLogger); 100 DISALLOW_COPY_AND_ASSIGN(ClientTelemetryLogger);
100 }; 101 };
101 102
102 } // namespace remoting 103 } // namespace remoting
103 104
104 #endif // REMOTING_CLIENT_CLIENT_TELEMETRY_LOGGER_H_ 105 #endif // REMOTING_CLIENT_CLIENT_TELEMETRY_LOGGER_H_
OLDNEW
« no previous file with comments | « remoting/base/telemetry_log_writer_unittest.cc ('k') | remoting/client/client_telemetry_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698