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

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

Issue 38303002: Enable Mojo to download from file URLs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/shell/loader.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 #include "mojo/shell/context.h" 5 #include "mojo/shell/context.h"
6 6
7 #include "mojo/shell/network_delegate.h"
7 #include "mojo/system/core_impl.h" 8 #include "mojo/system/core_impl.h"
8 9
9 namespace mojo { 10 namespace mojo {
10 namespace shell { 11 namespace shell {
11 12
12 Context::Context() 13 Context::Context()
13 : task_runners_(base::MessageLoop::current()->message_loop_proxy()), 14 : task_runners_(base::MessageLoop::current()->message_loop_proxy()),
14 storage_(), 15 storage_(),
15 loader_(task_runners_.io_runner(), 16 loader_(task_runners_.io_runner(),
16 task_runners_.file_runner(), 17 task_runners_.file_runner(),
18 scoped_ptr<net::NetworkDelegate>(new NetworkDelegate()),
17 storage_.profile_path()) { 19 storage_.profile_path()) {
18 system::CoreImpl::Init(); 20 system::CoreImpl::Init();
19 } 21 }
20 22
21 Context::~Context() { 23 Context::~Context() {
22 } 24 }
23 25
24 } // namespace shell 26 } // namespace shell
25 } // namespace mojo 27 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/shell/loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698