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

Side by Side Diff: base/message_loop/incoming_task_queue.h

Issue 2479683004: base: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing forward declaration Created 4 years, 1 month 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
« no previous file with comments | « base/memory/shared_memory_handle.h ('k') | base/metrics/histogram.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INCOMING_TASK_QUEUE_H_ 5 #ifndef BASE_MESSAGE_LOOP_INCOMING_TASK_QUEUE_H_
6 #define BASE_MESSAGE_LOOP_INCOMING_TASK_QUEUE_H_ 6 #define BASE_MESSAGE_LOOP_INCOMING_TASK_QUEUE_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/pending_task.h" 11 #include "base/pending_task.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "base/synchronization/read_write_lock.h" 13 #include "base/synchronization/read_write_lock.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 15
16 namespace base { 16 namespace base {
17 17
18 class MessageLoop; 18 class MessageLoop;
19 class WaitableEvent;
20 19
21 namespace internal { 20 namespace internal {
22 21
23 // Implements a queue of tasks posted to the message loop running on the current 22 // Implements a queue of tasks posted to the message loop running on the current
24 // thread. This class takes care of synchronizing posting tasks from different 23 // thread. This class takes care of synchronizing posting tasks from different
25 // threads and together with MessageLoop ensures clean shutdown. 24 // threads and together with MessageLoop ensures clean shutdown.
26 class BASE_EXPORT IncomingTaskQueue 25 class BASE_EXPORT IncomingTaskQueue
27 : public RefCountedThreadSafe<IncomingTaskQueue> { 26 : public RefCountedThreadSafe<IncomingTaskQueue> {
28 public: 27 public:
29 explicit IncomingTaskQueue(MessageLoop* message_loop); 28 explicit IncomingTaskQueue(MessageLoop* message_loop);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // False until StartScheduling() is called. 105 // False until StartScheduling() is called.
107 bool is_ready_for_scheduling_; 106 bool is_ready_for_scheduling_;
108 107
109 DISALLOW_COPY_AND_ASSIGN(IncomingTaskQueue); 108 DISALLOW_COPY_AND_ASSIGN(IncomingTaskQueue);
110 }; 109 };
111 110
112 } // namespace internal 111 } // namespace internal
113 } // namespace base 112 } // namespace base
114 113
115 #endif // BASE_MESSAGE_LOOP_INCOMING_TASK_QUEUE_H_ 114 #endif // BASE_MESSAGE_LOOP_INCOMING_TASK_QUEUE_H_
OLDNEW
« no previous file with comments | « base/memory/shared_memory_handle.h ('k') | base/metrics/histogram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698