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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_app.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: services/url_response_disk_cache/url_response_disk_cache_app.h
diff --git a/services/url_response_disk_cache/url_response_disk_cache_app.h b/services/url_response_disk_cache/url_response_disk_cache_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..32862ba9e411c1754944d387a6c30780c0d6954c
--- /dev/null
+++ b/services/url_response_disk_cache/url_response_disk_cache_app.h
@@ -0,0 +1,40 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_
+#define SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_
+
+#include "base/macros.h"
+#include "base/threading/sequenced_worker_pool.h"
+#include "mojo/public/cpp/application/application_connection.h"
+#include "mojo/public/cpp/application/application_delegate.h"
+#include "mojo/public/cpp/application/interface_factory.h"
+#include "mojo/services/url_response_disk_cache/public/interfaces/url_response_disk_cache.mojom.h"
+
+namespace mojo {
+namespace url_response_disk_cache {
+
+class URLResponseDiskCacheApp : public ApplicationDelegate,
+ public InterfaceFactory<URLResponseDiskCache> {
+ public:
+ URLResponseDiskCacheApp();
+ ~URLResponseDiskCacheApp() override;
+
+ private:
+ // ApplicationDelegate
+ bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
+
+ // InterfaceFactory<URLResponseDiskCache>
+ void Create(ApplicationConnection* connection,
+ InterfaceRequest<URLResponseDiskCache> request) override;
+
+ scoped_refptr<base::SequencedWorkerPool> worker_pool_;
+
+ DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheApp);
+};
+
+} // namespace url_response_disk_cache
+} // namespace mojo
+
+#endif // SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_

Powered by Google App Engine
This is Rietveld 408576698