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

Side by Side Diff: chrome/browser/chrome_thread_relay.cc

Issue 3131026: Moving file_system_proxy to base/ and changing it to work with MessageLoopPro... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/chrome_thread_relay.h ('k') | chrome/browser/file_system_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chrome_thread_relay.h"
6
7 ChromeThreadRelay::ChromeThreadRelay() {
8 if (!ChromeThread::GetCurrentThreadIdentifier(&origin_thread_id_))
9 NOTREACHED() << "Must be created on a valid ChromeThread";
10 }
11
12 void ChromeThreadRelay::Start(ChromeThread::ID target_thread_id,
13 const tracked_objects::Location& from_here) {
14 ChromeThread::PostTask(
15 target_thread_id,
16 from_here,
17 NewRunnableMethod(this, &ChromeThreadRelay::ProcessOnTargetThread));
18 }
19
20 void ChromeThreadRelay::ProcessOnTargetThread() {
21 RunWork();
22 ChromeThread::PostTask(
23 origin_thread_id_,
24 FROM_HERE,
25 NewRunnableMethod(this, &ChromeThreadRelay::RunCallback));
26 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_thread_relay.h ('k') | chrome/browser/file_system_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698