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

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

Issue 1351693007: Add invalidation to url_response_disk_cache. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review 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_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"
(...skipping 20 matching lines...) Expand all
31 URLResponseDiskCacheImpl(scoped_refptr<base::TaskRunner> task_runner, 31 URLResponseDiskCacheImpl(scoped_refptr<base::TaskRunner> task_runner,
32 scoped_refptr<URLResponseDiskCacheDB> db, 32 scoped_refptr<URLResponseDiskCacheDB> db,
33 const std::string& remote_application_url, 33 const std::string& remote_application_url,
34 InterfaceRequest<URLResponseDiskCache> request); 34 InterfaceRequest<URLResponseDiskCache> request);
35 ~URLResponseDiskCacheImpl() override; 35 ~URLResponseDiskCacheImpl() override;
36 36
37 private: 37 private:
38 // URLResponseDiskCache 38 // URLResponseDiskCache
39 void Get(const String& url, const GetCallback& callback) override; 39 void Get(const String& url, const GetCallback& callback) override;
40 void Update(URLResponsePtr response) override; 40 void Update(URLResponsePtr response) override;
41 void Validate(const String& url) override;
41 void UpdateAndGet(URLResponsePtr response, 42 void UpdateAndGet(URLResponsePtr response,
42 const UpdateAndGetCallback& callback) override; 43 const UpdateAndGetCallback& callback) override;
43 void UpdateAndGetExtracted( 44 void UpdateAndGetExtracted(
44 URLResponsePtr response, 45 URLResponsePtr response,
45 const UpdateAndGetExtractedCallback& callback) override; 46 const UpdateAndGetExtractedCallback& callback) override;
46 47
47 // Internal implementation of |UpdateAndGet| using a pair of base::FilePath to 48 // Internal implementation of |UpdateAndGet| using a pair of base::FilePath to
48 // represent the paths the the response body and to the per-response client 49 // represent the paths the the response body and to the per-response client
49 // cache directory. 50 // cache directory.
50 void UpdateAndGetInternal(URLResponsePtr response, 51 void UpdateAndGetInternal(URLResponsePtr response,
(...skipping 14 matching lines...) Expand all
65 std::string request_origin_; 66 std::string request_origin_;
66 scoped_refptr<URLResponseDiskCacheDB> db_; 67 scoped_refptr<URLResponseDiskCacheDB> db_;
67 StrongBinding<URLResponseDiskCache> binding_; 68 StrongBinding<URLResponseDiskCache> binding_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheImpl); 70 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheImpl);
70 }; 71 };
71 72
72 } // namespace mojo 73 } // namespace mojo
73 74
74 #endif // SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_IMPL_H_ 75 #endif // SERVICES_URL_RESPONSE_DISK_CACHE_URL_RESPONSE_DISK_CACHE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698