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 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_PROXY_IMPL_H_ | 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_PROXY_IMPL_H_ |
6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_PROXY_IMPL_H_ | 6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_PROXY_IMPL_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 | 14 |
15 // A stock implementation of MessageLoopProxy that is created and managed by a | 15 // A stock implementation of MessageLoopProxy that is created and managed by a |
16 // MessageLoop. For now a MessageLoopProxyImpl can only be created as part of a | 16 // MessageLoop. For now a MessageLoopProxyImpl can only be created as part of a |
17 // MessageLoop. | 17 // MessageLoop. |
18 class BASE_EXPORT MessageLoopProxyImpl : public MessageLoopProxy { | 18 class BASE_EXPORT MessageLoopProxyImpl : public MessageLoopProxy { |
19 public: | 19 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // The lock that protects access to target_message_loop_. | 53 // The lock that protects access to target_message_loop_. |
54 mutable base::Lock message_loop_lock_; | 54 mutable base::Lock message_loop_lock_; |
55 MessageLoop* target_message_loop_; | 55 MessageLoop* target_message_loop_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(MessageLoopProxyImpl); | 57 DISALLOW_COPY_AND_ASSIGN(MessageLoopProxyImpl); |
58 }; | 58 }; |
59 | 59 |
60 } // namespace base | 60 } // namespace base |
61 | 61 |
62 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_PROXY_IMPL_H_ | 62 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_PROXY_IMPL_H_ |
OLD | NEW |