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

Side by Side Diff: base/message_pump.h

Issue 7461141: Rename BASE_API to BASE_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_impl.h ('k') | base/message_pump_gtk.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) 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_PUMP_H_ 5 #ifndef BASE_MESSAGE_PUMP_H_
6 #define BASE_MESSAGE_PUMP_H_ 6 #define BASE_MESSAGE_PUMP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/base_api.h" 9 #include "base/base_export.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 11
12 namespace base { 12 namespace base {
13 13
14 class TimeTicks; 14 class TimeTicks;
15 15
16 class BASE_API MessagePump : public RefCountedThreadSafe<MessagePump> { 16 class BASE_EXPORT MessagePump : public RefCountedThreadSafe<MessagePump> {
17 public: 17 public:
18 // Please see the comments above the Run method for an illustration of how 18 // Please see the comments above the Run method for an illustration of how
19 // these delegate methods are used. 19 // these delegate methods are used.
20 class BASE_API Delegate { 20 class BASE_EXPORT Delegate {
21 public: 21 public:
22 virtual ~Delegate() {} 22 virtual ~Delegate() {}
23 23
24 // Called from within Run in response to ScheduleWork or when the message 24 // Called from within Run in response to ScheduleWork or when the message
25 // pump would otherwise call DoDelayedWork. Returns true to indicate that 25 // pump would otherwise call DoDelayedWork. Returns true to indicate that
26 // work was done. DoDelayedWork will still be called if DoWork returns 26 // work was done. DoDelayedWork will still be called if DoWork returns
27 // true, but DoIdleWork will not. 27 // true, but DoIdleWork will not.
28 virtual bool DoWork() = 0; 28 virtual bool DoWork() = 0;
29 29
30 // Called from within Run in response to ScheduleDelayedWork or when the 30 // Called from within Run in response to ScheduleDelayedWork or when the
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Schedule a DoDelayedWork callback to happen at the specified time, 119 // Schedule a DoDelayedWork callback to happen at the specified time,
120 // cancelling any pending DoDelayedWork callback. This method may only be 120 // cancelling any pending DoDelayedWork callback. This method may only be
121 // used on the thread that called Run. 121 // used on the thread that called Run.
122 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0; 122 virtual void ScheduleDelayedWork(const TimeTicks& delayed_work_time) = 0;
123 }; 123 };
124 124
125 } // namespace base 125 } // namespace base
126 126
127 #endif // BASE_MESSAGE_PUMP_H_ 127 #endif // BASE_MESSAGE_PUMP_H_
OLDNEW
« no previous file with comments | « base/message_loop_proxy_impl.h ('k') | base/message_pump_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698