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

Side by Side Diff: services/asset_bundle/asset_unpacker_impl.cc

Issue 1206673006: Don't use base::WorkerPool in the asset_bundle app. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: move comment Created 5 years, 6 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 | « services/asset_bundle/asset_unpacker_impl.h ('k') | services/asset_bundle/asset_unpacker_job.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "services/asset_bundle/asset_unpacker_impl.h" 5 #include "services/asset_bundle/asset_unpacker_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "services/asset_bundle/asset_unpacker_job.h" 8 #include "services/asset_bundle/asset_unpacker_job.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace asset_bundle { 11 namespace asset_bundle {
12 12
13 AssetUnpackerImpl::AssetUnpackerImpl(InterfaceRequest<AssetUnpacker> request) 13 AssetUnpackerImpl::AssetUnpackerImpl(
14 : binding_(this, request.Pass()) { 14 InterfaceRequest<AssetUnpacker> request,
15 scoped_refptr<base::TaskRunner> worker_runner)
16 : binding_(this, request.Pass()), worker_runner_(worker_runner.Pass()) {
15 } 17 }
16 18
17 AssetUnpackerImpl::~AssetUnpackerImpl() { 19 AssetUnpackerImpl::~AssetUnpackerImpl() {
18 } 20 }
19 21
20 void AssetUnpackerImpl::UnpackZipStream(ScopedDataPipeConsumerHandle zipped, 22 void AssetUnpackerImpl::UnpackZipStream(ScopedDataPipeConsumerHandle zipped,
21 InterfaceRequest<AssetBundle> request) { 23 InterfaceRequest<AssetBundle> request) {
22 (new AssetUnpackerJob(request.Pass()))->Unpack(zipped.Pass()); 24 (new AssetUnpackerJob(request.Pass(), worker_runner_))->Unpack(zipped.Pass());
23 } 25 }
24 26
25 } // namespace asset_bundle 27 } // namespace asset_bundle
26 } // namespace mojo 28 } // namespace mojo
OLDNEW
« no previous file with comments | « services/asset_bundle/asset_unpacker_impl.h ('k') | services/asset_bundle/asset_unpacker_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698