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

Side by Side Diff: services/url_response_disk_cache/url_response_disk_cache_app.h

Issue 1276073004: Offline By Default (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix command line. Created 5 years, 3 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_ 5 #ifndef SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_
6 #define SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_ 6 #define SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
9 #include "base/task_runner.h" 10 #include "base/task_runner.h"
10 #include "base/threading/sequenced_worker_pool.h" 11 #include "base/threading/sequenced_worker_pool.h"
11 #include "mojo/public/cpp/application/application_connection.h" 12 #include "mojo/public/cpp/application/application_connection.h"
12 #include "mojo/public/cpp/application/application_delegate.h" 13 #include "mojo/public/cpp/application/application_delegate.h"
13 #include "mojo/public/cpp/application/application_impl.h" 14 #include "mojo/public/cpp/application/application_impl.h"
14 #include "mojo/public/cpp/application/interface_factory.h" 15 #include "mojo/public/cpp/application/interface_factory.h"
15 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d isk_cache.mojom.h" 16 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d isk_cache.mojom.h"
17 #include "services/url_response_disk_cache/url_response_disk_cache_db.h"
16 18
17 namespace mojo { 19 namespace mojo {
18 20
19 class URLResponseDiskCacheApp : public ApplicationDelegate, 21 class URLResponseDiskCacheApp : public ApplicationDelegate,
20 public InterfaceFactory<URLResponseDiskCache> { 22 public InterfaceFactory<URLResponseDiskCache> {
21 public: 23 public:
22 URLResponseDiskCacheApp(base::TaskRunner* task_runner); 24 URLResponseDiskCacheApp(scoped_refptr<base::TaskRunner> task_runner);
23 ~URLResponseDiskCacheApp() override; 25 ~URLResponseDiskCacheApp() override;
24 26
25 private: 27 private:
26 // ApplicationDelegate: 28 // ApplicationDelegate:
27 void Initialize(ApplicationImpl* app) override; 29 void Initialize(ApplicationImpl* app) override;
28 bool ConfigureIncomingConnection(ApplicationConnection* connection) override; 30 bool ConfigureIncomingConnection(ApplicationConnection* connection) override;
29 31
30 // InterfaceFactory<URLResponseDiskCache>: 32 // InterfaceFactory<URLResponseDiskCache>:
31 void Create(ApplicationConnection* connection, 33 void Create(ApplicationConnection* connection,
32 InterfaceRequest<URLResponseDiskCache> request) override; 34 InterfaceRequest<URLResponseDiskCache> request) override;
33 35
34 base::TaskRunner* task_runner_; 36 scoped_refptr<base::TaskRunner> task_runner_;
37 scoped_refptr<URLResponseDiskCacheDB> db_;
35 38
36 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheApp); 39 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheApp);
37 }; 40 };
38 41
39 } // namespace mojo 42 } // namespace mojo
40 43
41 #endif // SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_ 44 #endif // SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698