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

Side by Side Diff: shell/url_response_disk_cache_loader.cc

Issue 1364243002: Bundle core applicatons in the shell. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 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
« no previous file with comments | « shell/url_response_disk_cache_loader.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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "shell/url_response_disk_cache_loader.h" 5 #include "shell/url_response_disk_cache_loader.h"
6 6
7 namespace shell { 7 namespace shell {
8 8
9 URLResponseDiskCacheLoader::URLResponseDiskCacheLoader( 9 URLResponseDiskCacheLoader::URLResponseDiskCacheLoader(
10 scoped_refptr<base::TaskRunner> task_runner) 10 scoped_refptr<base::TaskRunner> task_runner,
11 : url_response_disk_cache_(task_runner) {} 11 mojo::URLResponseDiskCacheDelegate* delegate)
12 : url_response_disk_cache_(task_runner, delegate) {}
12 13
13 URLResponseDiskCacheLoader::~URLResponseDiskCacheLoader() { 14 URLResponseDiskCacheLoader::~URLResponseDiskCacheLoader() {
14 } 15 }
15 16
16 void URLResponseDiskCacheLoader::Load( 17 void URLResponseDiskCacheLoader::Load(
17 const GURL& url, 18 const GURL& url,
18 mojo::InterfaceRequest<mojo::Application> application_request) { 19 mojo::InterfaceRequest<mojo::Application> application_request) {
19 DCHECK(application_request.is_pending()); 20 DCHECK(application_request.is_pending());
20 application_.reset(new mojo::ApplicationImpl(&url_response_disk_cache_, 21 application_.reset(new mojo::ApplicationImpl(&url_response_disk_cache_,
21 application_request.Pass())); 22 application_request.Pass()));
22 } 23 }
23 24
24 } // namespace shell 25 } // namespace shell
OLDNEW
« no previous file with comments | « shell/url_response_disk_cache_loader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698