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 REMOTING_SIGNALING_LOG_TO_SERVER_H_ | 5 #ifndef REMOTING_SIGNALING_LOG_TO_SERVER_H_ |
6 #define REMOTING_SIGNALING_LOG_TO_SERVER_H_ | 6 #define REMOTING_SIGNALING_LOG_TO_SERVER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 void Log(const ServerLogEntry& entry); | 40 void Log(const ServerLogEntry& entry); |
41 | 41 |
42 ServerLogEntry::Mode mode() { return mode_; } | 42 ServerLogEntry::Mode mode() { return mode_; } |
43 | 43 |
44 private: | 44 private: |
45 void SendPendingEntries(); | 45 void SendPendingEntries(); |
46 | 46 |
47 ServerLogEntry::Mode mode_; | 47 ServerLogEntry::Mode mode_; |
48 SignalStrategy* signal_strategy_; | 48 SignalStrategy* signal_strategy_; |
49 scoped_ptr<IqSender> iq_sender_; | 49 std::unique_ptr<IqSender> iq_sender_; |
50 std::string directory_bot_jid_; | 50 std::string directory_bot_jid_; |
51 | 51 |
52 std::deque<ServerLogEntry> pending_entries_; | 52 std::deque<ServerLogEntry> pending_entries_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(LogToServer); | 54 DISALLOW_COPY_AND_ASSIGN(LogToServer); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace remoting | 57 } // namespace remoting |
58 | 58 |
59 #endif // REMOTING_SIGNALING_LOG_TO_SERVER_H_ | 59 #endif // REMOTING_SIGNALING_LOG_TO_SERVER_H_ |
OLD | NEW |