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

Unified Diff: shell/android/android_handler.h

Issue 1088533003: Adding URLResponse Disk Cache to mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 7 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
Index: shell/android/android_handler.h
diff --git a/shell/android/android_handler.h b/shell/android/android_handler.h
index f2779ffc60e67396906426e1d2e0dafc5cc388fd..91557bfdee7bf437b138d922a486cdad2b6f6e68 100644
--- a/shell/android/android_handler.h
+++ b/shell/android/android_handler.h
@@ -7,10 +7,12 @@
#include <jni.h>
+#include "base/single_thread_task_runner.h"
#include "mojo/application/content_handler_factory.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/interface_factory_impl.h"
#include "mojo/services/content_handler/public/interfaces/content_handler.mojom.h"
+#include "mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom.h"
#include "shell/android/intent_receiver_manager_factory.h"
namespace base {
@@ -36,8 +38,16 @@ class AndroidHandler : public mojo::ApplicationDelegate,
mojo::InterfaceRequest<mojo::Application> application_request,
mojo::URLResponsePtr response) override;
+ void ExtractApplication(base::FilePath* extracted_dir,
+ base::FilePath* cache_dir,
+ mojo::URLResponsePtr response,
+ const base::Closure& callback);
+
mojo::ContentHandlerFactory content_handler_factory_;
IntentReceiverManagerFactory intent_receiver_manager_factory_;
+ mojo::url_response_disk_cache::URLResponseDiskCachePtr
+ url_response_disk_cache_;
+ scoped_refptr<base::SingleThreadTaskRunner> handler_task_runner_;
MOJO_DISALLOW_COPY_AND_ASSIGN(AndroidHandler);
};

Powered by Google App Engine
This is Rietveld 408576698