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

Side by Side Diff: services/service_cache/service_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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_SERVICE_CACHE_SERVICE_CACHE_APP_H_
6 #define SERVICES_SERVICE_CACHE_SERVICE_CACHE_APP_H_
7
8 #include "base/macros.h"
9 #include "base/threading/sequenced_worker_pool.h"
10 #include "mojo/public/cpp/application/application_connection.h"
11 #include "mojo/public/cpp/application/application_delegate.h"
12 #include "mojo/public/cpp/application/interface_factory.h"
13 #include "mojo/services/service_cache/public/interfaces/service_cache.mojom.h"
14
15 namespace mojo {
16 namespace service_cache {
17
18 class ServiceCacheApp : public ApplicationDelegate,
19 public InterfaceFactory<ServiceCache> {
20 public:
21 ServiceCacheApp();
22 ~ServiceCacheApp() override;
23
24 private:
25 // ApplicationDelegate
26 bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
27
28 // InterfaceFactory<ServiceCache>
29 void Create(ApplicationConnection* connection,
30 InterfaceRequest<ServiceCache> request) override;
31
32 scoped_refptr<base::SequencedWorkerPool> worker_pool_;
33
34 DISALLOW_COPY_AND_ASSIGN(ServiceCacheApp);
35 };
36
37 } // namespace service_cache
38 } // namespace mojo
39
40 #endif // SERVICES_SERVICE_CACHE_SERVICE_CACHE_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698