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

Unified Diff: services/asset_bundle/asset_unpacker_job.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/asset_bundle/asset_unpacker_impl.cc ('k') | services/asset_bundle/asset_unpacker_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/asset_bundle/asset_unpacker_job.h
diff --git a/services/asset_bundle/asset_unpacker_job.h b/services/asset_bundle/asset_unpacker_job.h
index 06759718700908e0284234ca004d39587710176e..66c2b331e84d2a04599258716bd53cc8f31e4222 100644
--- a/services/asset_bundle/asset_unpacker_job.h
+++ b/services/asset_bundle/asset_unpacker_job.h
@@ -8,6 +8,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/task_runner.h"
#include "mojo/common/data_pipe_utils.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/services/asset_bundle/public/interfaces/asset_bundle.mojom.h"
@@ -17,7 +18,8 @@ namespace asset_bundle {
class AssetUnpackerJob {
public:
- AssetUnpackerJob(InterfaceRequest<AssetBundle> asset_bundle);
+ AssetUnpackerJob(InterfaceRequest<AssetBundle> asset_bundle,
+ scoped_refptr<base::TaskRunner> worker_runner);
~AssetUnpackerJob();
void Unpack(ScopedDataPipeConsumerHandle zipped_assets);
@@ -27,6 +29,7 @@ class AssetUnpackerJob {
void OnUnzippedAssetsAvailable(scoped_ptr<base::ScopedTempDir> temp_dir);
InterfaceRequest<AssetBundle> asset_bundle_;
+ scoped_refptr<base::TaskRunner> worker_runner_;
base::WeakPtrFactory<AssetUnpackerJob> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(AssetUnpackerJob);
« no previous file with comments | « services/asset_bundle/asset_unpacker_impl.cc ('k') | services/asset_bundle/asset_unpacker_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698