OLD | NEW |
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_IMPL_H_ | 5 #ifndef SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_IMPL_H_ |
6 #define SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_IMPL_H_ | 6 #define SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_IMPL_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/task_runner.h" | 11 #include "base/task_runner.h" |
12 #include "mojo/public/cpp/bindings/strong_binding.h" | 12 #include "mojo/public/cpp/bindings/strong_binding.h" |
13 #include "mojo/services/url_response_disk_cache/public/interfaces/url_response_d
isk_cache.mojom.h" | 13 #include "mojo/services/url_response_disk_cache/interfaces/url_response_disk_cac
he.mojom.h" |
14 #include "services/url_response_disk_cache/url_response_disk_cache_db.h" | 14 #include "services/url_response_disk_cache/url_response_disk_cache_db.h" |
15 #include "services/url_response_disk_cache/url_response_disk_cache_delegate.h" | 15 #include "services/url_response_disk_cache/url_response_disk_cache_delegate.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 class URLResponseDiskCacheImpl : public URLResponseDiskCache { | 19 class URLResponseDiskCacheImpl : public URLResponseDiskCache { |
20 public: | 20 public: |
21 using ResponseFileAndCacheDirCallback = | 21 using ResponseFileAndCacheDirCallback = |
22 base::Callback<void(const base::FilePath&, const base::FilePath&)>; | 22 base::Callback<void(const base::FilePath&, const base::FilePath&)>; |
23 | 23 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 URLResponseDiskCacheDelegate* delegate_; | 69 URLResponseDiskCacheDelegate* delegate_; |
70 scoped_refptr<URLResponseDiskCacheDB> db_; | 70 scoped_refptr<URLResponseDiskCacheDB> db_; |
71 StrongBinding<URLResponseDiskCache> binding_; | 71 StrongBinding<URLResponseDiskCache> binding_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheImpl); | 73 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheImpl); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace mojo | 76 } // namespace mojo |
77 | 77 |
78 #endif // SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_IMPL_H_ | 78 #endif // SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_IMPL_H_ |
OLD | NEW |