OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // ChromotingClient is the controller for the Client implementation. | 5 // ChromotingClient is the controller for the Client implementation. |
6 | 6 |
7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/time.h" | |
16 #include "remoting/client/client_config.h" | 15 #include "remoting/client/client_config.h" |
17 #include "remoting/client/chromoting_stats.h" | 16 #include "remoting/client/chromoting_stats.h" |
18 #include "remoting/protocol/client_stub.h" | 17 #include "remoting/protocol/client_stub.h" |
19 #include "remoting/protocol/clipboard_stub.h" | 18 #include "remoting/protocol/clipboard_stub.h" |
20 #include "remoting/protocol/connection_to_host.h" | 19 #include "remoting/protocol/connection_to_host.h" |
21 #include "remoting/protocol/input_stub.h" | 20 #include "remoting/protocol/input_stub.h" |
22 #include "remoting/protocol/video_stub.h" | 21 #include "remoting/protocol/video_stub.h" |
23 #include "remoting/jingle_glue/xmpp_proxy.h" | 22 #include "remoting/jingle_glue/xmpp_proxy.h" |
24 | 23 |
25 namespace base { | 24 namespace base { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // WeakPtr used to avoid tasks accessing the client after it is deleted. | 97 // WeakPtr used to avoid tasks accessing the client after it is deleted. |
99 base::WeakPtrFactory<ChromotingClient> weak_factory_; | 98 base::WeakPtrFactory<ChromotingClient> weak_factory_; |
100 base::WeakPtr<ChromotingClient> weak_ptr_; | 99 base::WeakPtr<ChromotingClient> weak_ptr_; |
101 | 100 |
102 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 101 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
103 }; | 102 }; |
104 | 103 |
105 } // namespace remoting | 104 } // namespace remoting |
106 | 105 |
107 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 106 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |