context.cc revision 1e9bf3e0803691d0a228da41fc608347b6db4340
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
3// found in the LICENSE file.
4
5#include "mojo/shell/context.h"
6
7#include "mojo/shell/network_delegate.h"
8#include "mojo/system/core_impl.h"
9
10namespace mojo {
11namespace shell {
12
13Context::Context()
14    : task_runners_(base::MessageLoop::current()->message_loop_proxy()),
15      storage_(),
16      loader_(task_runners_.io_runner(),
17              task_runners_.file_runner(),
18              scoped_ptr<net::NetworkDelegate>(new NetworkDelegate()),
19              storage_.profile_path()) {
20  system::CoreImpl::Init();
21}
22
23Context::~Context() {
24}
25
26}  // namespace shell
27}  // namespace mojo
28