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

Side by Side Diff: remoting/client/jni/chromoting_jni_instance.h

Issue 2142253002: [Remoting Android] Fix GetWeakPtr() calls on multiple threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_JNI_CHROMOTING_JNI_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_JNI_CHROMOTING_JNI_INSTANCE_H_
6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_INSTANCE_H_ 6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_INSTANCE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 // The set of capabilities supported by the client. Accessed on the network 194 // The set of capabilities supported by the client. Accessed on the network
195 // thread. Once SetCapabilities() is called, this will contain the negotiated 195 // thread. Once SetCapabilities() is called, this will contain the negotiated
196 // set of capabilities for this remoting session. 196 // set of capabilities for this remoting session.
197 std::string capabilities_; 197 std::string capabilities_;
198 198
199 // Indicates whether the client is connected to the host. Used on network 199 // Indicates whether the client is connected to the host. Used on network
200 // thread. 200 // thread.
201 bool connected_ = false; 201 bool connected_ = false;
202 202
203 base::WeakPtr<ChromotingJniInstance> weak_ptr_;
203 base::WeakPtrFactory<ChromotingJniInstance> weak_factory_; 204 base::WeakPtrFactory<ChromotingJniInstance> weak_factory_;
204 205
205 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance); 206 DISALLOW_COPY_AND_ASSIGN(ChromotingJniInstance);
206 }; 207 };
207 208
208 } // namespace remoting 209 } // namespace remoting
209 210
210 #endif // REMOTING_CLIENT_JNI_CHROMOTING_JNI_INSTANCE_H_ 211 #endif // REMOTING_CLIENT_JNI_CHROMOTING_JNI_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/jni/chromoting_jni_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698