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

Side by Side Diff: base/message_loop_proxy_impl.h

Issue 6736019: Base: A few more files using BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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_proxy.h ('k') | base/message_pump.h » ('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) 2010 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_IMPL_H_ 5 #ifndef BASE_MESSAGE_LOOP_PROXY_IMPL_H_
6 #define BASE_MESSAGE_LOOP_PROXY_IMPL_H_ 6 #define BASE_MESSAGE_LOOP_PROXY_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/base_api.h"
9 #include "base/message_loop.h" 10 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
11 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
12 13
13 namespace base { 14 namespace base {
14 15
15 // A stock implementation of MessageLoopProxy that takes in a MessageLoop 16 // A stock implementation of MessageLoopProxy that takes in a MessageLoop
16 // and keeps track of its lifetime using the MessageLoop DestructionObserver. 17 // and keeps track of its lifetime using the MessageLoop DestructionObserver.
17 // For now a MessageLoopProxyImpl can only be created for the current thread. 18 // For now a MessageLoopProxyImpl can only be created for the current thread.
18 class MessageLoopProxyImpl : public MessageLoopProxy, 19 class BASE_API MessageLoopProxyImpl : public MessageLoopProxy,
19 public MessageLoop::DestructionObserver { 20 public MessageLoop::DestructionObserver {
20 public: 21 public:
21 virtual ~MessageLoopProxyImpl(); 22 virtual ~MessageLoopProxyImpl();
22 23
23 // MessageLoopProxy implementation 24 // MessageLoopProxy implementation
24 virtual bool PostTask(const tracked_objects::Location& from_here, 25 virtual bool PostTask(const tracked_objects::Location& from_here,
25 Task* task); 26 Task* task);
26 virtual bool PostDelayedTask(const tracked_objects::Location& from_here, 27 virtual bool PostDelayedTask(const tracked_objects::Location& from_here,
27 Task* task, int64 delay_ms); 28 Task* task, int64 delay_ms);
28 virtual bool PostNonNestableTask(const tracked_objects::Location& from_here, 29 virtual bool PostNonNestableTask(const tracked_objects::Location& from_here,
29 Task* task); 30 Task* task);
(...skipping 23 matching lines...) Expand all
53 mutable base::Lock message_loop_lock_; 54 mutable base::Lock message_loop_lock_;
54 MessageLoop* target_message_loop_; 55 MessageLoop* target_message_loop_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(MessageLoopProxyImpl); 57 DISALLOW_COPY_AND_ASSIGN(MessageLoopProxyImpl);
57 }; 58 };
58 59
59 } // namespace base 60 } // namespace base
60 61
61 #endif // BASE_MESSAGE_LOOP_PROXY_IMPL_H_ 62 #endif // BASE_MESSAGE_LOOP_PROXY_IMPL_H_
62 63
OLDNEW
« no previous file with comments | « base/message_loop_proxy.h ('k') | base/message_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698