|
Replace ScopedThreadProxy with MessageLoopProxy & WeakPtrs.
This affects the following classes:
* ChromotingClient
* ChromotingInstance
* HostUserInterface
* It2MeHostUserInterface
The MessageLoopProxy/WeakPtr combination requires that the WeakPtr is created on the thread referred to by the proxy; code in which that is hard to arrange usually has subtle race-conditions.
This is a re-land of CL 1045404, replacing some CR_DEFINE_STATIC_LOCAL() instances with base::LazyInstance to avoid adding global initializers or finalizers.
TEST=Existing unit-tests, and manual testing.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141028
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+92 lines, -250 lines) |
Patch |
 |
D |
remoting/base/scoped_thread_proxy.h
|
View
|
|
1 chunk |
+0 lines, -73 lines |
0 comments
|
Download
|
 |
D |
remoting/base/scoped_thread_proxy.cc
|
View
|
|
1 chunk |
+0 lines, -86 lines |
0 comments
|
Download
|
 |
M |
remoting/client/chromoting_client.h
|
View
|
1
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/client/chromoting_client.cc
|
View
|
1
|
6 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
remoting/client/plugin/chromoting_instance.h
|
View
|
1
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/client/plugin/chromoting_instance.cc
|
View
|
1
|
8 chunks |
+37 lines, -35 lines |
0 comments
|
Download
|
 |
M |
remoting/host/host_user_interface.h
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
remoting/host/host_user_interface.cc
|
View
|
|
6 chunks |
+18 lines, -12 lines |
0 comments
|
Download
|
 |
M |
remoting/host/it2me_host_user_interface.h
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
remoting/host/it2me_host_user_interface.cc
|
View
|
|
4 chunks |
+14 lines, -27 lines |
0 comments
|
Download
|
 |
M |
remoting/remoting.gyp
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|