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

Side by Side Diff: base/message_loop_proxy_impl.h

Issue 9169037: Make new TaskRunner, SequencedTaskRunner, and SingleThreadTaskRunner interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 8 years, 10 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
OLDNEW
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_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_export.h" 9 #include "base/base_export.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 15 matching lines...) Expand all
26 const base::Closure& task) OVERRIDE; 26 const base::Closure& task) OVERRIDE;
27 virtual bool PostDelayedTask(const tracked_objects::Location& from_here, 27 virtual bool PostDelayedTask(const tracked_objects::Location& from_here,
28 const base::Closure& task, 28 const base::Closure& task,
29 int64 delay_ms) OVERRIDE; 29 int64 delay_ms) OVERRIDE;
30 virtual bool PostNonNestableTask(const tracked_objects::Location& from_here, 30 virtual bool PostNonNestableTask(const tracked_objects::Location& from_here,
31 const base::Closure& task) OVERRIDE; 31 const base::Closure& task) OVERRIDE;
32 virtual bool PostNonNestableDelayedTask( 32 virtual bool PostNonNestableDelayedTask(
33 const tracked_objects::Location& from_here, 33 const tracked_objects::Location& from_here,
34 const base::Closure& task, 34 const base::Closure& task,
35 int64 delay_ms) OVERRIDE; 35 int64 delay_ms) OVERRIDE;
36 virtual bool BelongsToCurrentThread() OVERRIDE; 36 virtual bool RunsTasksOnCurrentThread() const OVERRIDE;
37 37
38 protected: 38 protected:
39 // Override OnDestruct so that we can delete the object on the target message 39 // Override OnDestruct so that we can delete the object on the target message
40 // loop if it still exists. 40 // loop if it still exists.
41 virtual void OnDestruct() const OVERRIDE; 41 virtual void OnDestruct() const OVERRIDE;
42 42
43 private: 43 private:
44 MessageLoopProxyImpl(); 44 MessageLoopProxyImpl();
45 45
46 // Called directly by MessageLoop::~MessageLoop. 46 // Called directly by MessageLoop::~MessageLoop.
(...skipping 11 matching lines...) Expand all
58 // The lock that protects access to target_message_loop_. 58 // The lock that protects access to target_message_loop_.
59 mutable base::Lock message_loop_lock_; 59 mutable base::Lock message_loop_lock_;
60 MessageLoop* target_message_loop_; 60 MessageLoop* target_message_loop_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(MessageLoopProxyImpl); 62 DISALLOW_COPY_AND_ASSIGN(MessageLoopProxyImpl);
63 }; 63 };
64 64
65 } // namespace base 65 } // namespace base
66 66
67 #endif // BASE_MESSAGE_LOOP_PROXY_IMPL_H_ 67 #endif // BASE_MESSAGE_LOOP_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698