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

Side by Side Diff: base/message_loop_proxy.h

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « base/message_loop.h ('k') | base/message_loop_proxy.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 14
15 namespace tracked_objects {
16 class Location;
17 } // namespace tracked_objects
18
15 namespace base { 19 namespace base {
16 20
17 struct MessageLoopProxyTraits; 21 struct MessageLoopProxyTraits;
18 22
19 // 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
20 // of a message loop. This class can outlive the target message loop. 24 // of a message loop. This class can outlive the target message loop.
21 // MessageLoopProxy objects are constructed automatically for all MessageLoops. 25 // MessageLoopProxy objects are constructed automatically for all MessageLoops.
22 // So, to access them, you can use any of the following: 26 // So, to access them, you can use any of the following:
23 // Thread::message_loop_proxy() 27 // Thread::message_loop_proxy()
24 // MessageLoop::current()->message_loop_proxy() 28 // MessageLoop::current()->message_loop_proxy()
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 148
145 struct MessageLoopProxyTraits { 149 struct MessageLoopProxyTraits {
146 static void Destruct(const MessageLoopProxy* proxy) { 150 static void Destruct(const MessageLoopProxy* proxy) {
147 proxy->OnDestruct(); 151 proxy->OnDestruct();
148 } 152 }
149 }; 153 };
150 154
151 } // namespace base 155 } // namespace base
152 156
153 #endif // BASE_MESSAGE_LOOP_PROXY_H_ 157 #endif // BASE_MESSAGE_LOOP_PROXY_H_
OLDNEW
« no previous file with comments | « base/message_loop.h ('k') | base/message_loop_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698