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_PROXY_H_ | 5 #ifndef BASE_MESSAGE_LOOP_PROXY_H_ |
6 #define BASE_MESSAGE_LOOP_PROXY_H_ | 6 #define BASE_MESSAGE_LOOP_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/base_export.h" | 9 #include "base/base_export.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/message_loop_helpers.h" | 13 #include "base/message_loop_helpers.h" |
14 #include "base/task.h" | |
15 | 14 |
16 namespace tracked_objects { | 15 namespace tracked_objects { |
17 class Location; | 16 class Location; |
18 } // namespace tracked_objects | 17 } // namespace tracked_objects |
19 | 18 |
20 namespace base { | 19 namespace base { |
21 | 20 |
22 struct MessageLoopProxyTraits; | 21 struct MessageLoopProxyTraits; |
23 | 22 |
24 // This class provides a thread-safe refcounted interface to the Post* methods | 23 // This class provides a thread-safe refcounted interface to the Post* methods |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 141 |
143 struct MessageLoopProxyTraits { | 142 struct MessageLoopProxyTraits { |
144 static void Destruct(const MessageLoopProxy* proxy) { | 143 static void Destruct(const MessageLoopProxy* proxy) { |
145 proxy->OnDestruct(); | 144 proxy->OnDestruct(); |
146 } | 145 } |
147 }; | 146 }; |
148 | 147 |
149 } // namespace base | 148 } // namespace base |
150 | 149 |
151 #endif // BASE_MESSAGE_LOOP_PROXY_H_ | 150 #endif // BASE_MESSAGE_LOOP_PROXY_H_ |
OLD | NEW |