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

Side by Side Diff: remoting/host/server_log_entry_host.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 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 REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_ 5 #ifndef REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
6 #define REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_ 6 #define REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
7 7
8 #include "remoting/protocol/transport.h" 8 #include "remoting/protocol/transport.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 class ServerLogEntry; 12 class ServerLogEntry;
13 13
14 // Constructs a log entry for a session state change. 14 // Constructs a log entry for a session state change.
15 // Currently this is either connection or disconnection. 15 // Currently this is either connection or disconnection.
16 scoped_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange( 16 std::unique_ptr<ServerLogEntry> MakeLogEntryForSessionStateChange(
17 bool connected); 17 bool connected);
18 18
19 // Constructs a log entry for a heartbeat. 19 // Constructs a log entry for a heartbeat.
20 scoped_ptr<ServerLogEntry> MakeLogEntryForHeartbeat(); 20 std::unique_ptr<ServerLogEntry> MakeLogEntryForHeartbeat();
21 21
22 // Adds fields describing the host to this log entry. 22 // Adds fields describing the host to this log entry.
23 void AddHostFieldsToLogEntry(ServerLogEntry* entry); 23 void AddHostFieldsToLogEntry(ServerLogEntry* entry);
24 24
25 // Adds a field describing connection type (direct/stun/relay). 25 // Adds a field describing connection type (direct/stun/relay).
26 void AddConnectionTypeToLogEntry(ServerLogEntry* entry, 26 void AddConnectionTypeToLogEntry(ServerLogEntry* entry,
27 protocol::TransportRoute::RouteType type); 27 protocol::TransportRoute::RouteType type);
28 28
29 } // namespace remoting 29 } // namespace remoting
30 30
31 #endif // REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_ 31 #endif // REMOTING_HOST_SERVER_LOG_ENTRY_HOST_H_
OLDNEW
« no previous file with comments | « remoting/host/security_key/security_key_message.cc ('k') | remoting/host/server_log_entry_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698