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

Side by Side Diff: mojo/shell/task_runners.cc

Issue 27943002: Teach mojo_shell how to load http URLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix lifetime Created 7 years, 2 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
« mojo/shell/app_container.h ('K') | « mojo/shell/task_runners.h ('k') | no next file » | 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) 2013 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 "mojo/shell/task_runners.h"
6
7 #include "base/message_loop/message_loop_proxy.h"
8 #include "base/threading/thread.h"
9
10 namespace mojo {
11 namespace shell {
12
13 TaskRunners::TaskRunners(base::SingleThreadTaskRunner* ui_runner)
14 : ui_runner_(ui_runner),
15 io_thread_(new base::Thread("io_thread")) {
16 base::Thread::Options options;
17 options.message_loop_type = base::MessageLoop::TYPE_IO;
18 io_thread_->StartWithOptions(options);
19 }
20
21 TaskRunners::~TaskRunners() {
22 }
23
24 } // namespace shell
25 } // namespace mojo
OLDNEW
« mojo/shell/app_container.h ('K') | « mojo/shell/task_runners.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698