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

Side by Side Diff: remoting/base/auto_thread.h

Issue 19574007: Use a direct include of the message_loop header in remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « no previous file | remoting/base/auto_thread_task_runner.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) 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 REMOTING_BASE_AUTO_THREAD_H_ 5 #ifndef REMOTING_BASE_AUTO_THREAD_H_
6 #define REMOTING_BASE_AUTO_THREAD_H_ 6 #define REMOTING_BASE_AUTO_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/threading/platform_thread.h" 11 #include "base/threading/platform_thread.h"
12 #include "remoting/base/auto_thread_task_runner.h" 12 #include "remoting/base/auto_thread_task_runner.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 // Thread implementation that runs a MessageLoop on a new thread, and manages 16 // Thread implementation that runs a MessageLoop on a new thread, and manages
17 // the lifetime of the MessageLoop and thread by tracking references to the 17 // the lifetime of the MessageLoop and thread by tracking references to the
18 // thread's TaskRunner. The caller passes the thread's TaskRunner to each 18 // thread's TaskRunner. The caller passes the thread's TaskRunner to each
19 // object that needs to run code on the thread, and when no references to the 19 // object that needs to run code on the thread, and when no references to the
20 // TaskRunner remain, the thread will exit. When the caller destroys this 20 // TaskRunner remain, the thread will exit. When the caller destroys this
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // AutoThreadTaskRunner to post a task to to join & delete this thread. 107 // AutoThreadTaskRunner to post a task to to join & delete this thread.
108 scoped_refptr<AutoThreadTaskRunner> joiner_; 108 scoped_refptr<AutoThreadTaskRunner> joiner_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(AutoThread); 110 DISALLOW_COPY_AND_ASSIGN(AutoThread);
111 }; 111 };
112 112
113 } // namespace remoting 113 } // namespace remoting
114 114
115 #endif // REMOTING_AUTO_THREAD_H_ 115 #endif // REMOTING_AUTO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/base/auto_thread_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698