Index: services/service_cache/service_cache_app.h |
diff --git a/services/service_cache/service_cache_app.h b/services/service_cache/service_cache_app.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1d4042c7cb9802645ddf2f4e2a20f310be151295 |
--- /dev/null |
+++ b/services/service_cache/service_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_SERVICE_CACHE_SERVICE_CACHE_APP_H_ |
+#define SERVICES_SERVICE_CACHE_SERVICE_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/service_cache/public/interfaces/service_cache.mojom.h" |
+ |
+namespace mojo { |
+namespace service_cache { |
DaveMoore
2015/05/05 21:20:59
Although we're not consistent everywhere I think i
qsr
2015/05/06 08:13:49
I thought we wanted to stop putting everything in
|
+ |
+class ServiceCacheApp : public ApplicationDelegate, |
+ public InterfaceFactory<ServiceCache> { |
+ public: |
+ ServiceCacheApp(); |
+ ~ServiceCacheApp() override; |
+ |
+ private: |
+ // ApplicationDelegate |
+ bool ConfigureIncomingConnection(ApplicationConnection* connection) override; |
+ |
+ // InterfaceFactory<ServiceCache> |
+ void Create(ApplicationConnection* connection, |
+ InterfaceRequest<ServiceCache> request) override; |
+ |
+ scoped_refptr<base::SequencedWorkerPool> worker_pool_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ServiceCacheApp); |
+}; |
+ |
+} // namespace service_cache |
+} // namespace mojo |
+ |
+#endif // SERVICES_SERVICE_CACHE_SERVICE_CACHE_APP_H_ |