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

Unified Diff: services/url_response_disk_cache/url_response_disk_cache_entry.mojom

Issue 1276073004: Offline By Default (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 side-by-side diff with in-line comments
Download patch
Index: services/url_response_disk_cache/url_response_disk_cache_entry.mojom
diff --git a/services/url_response_disk_cache/url_response_disk_cache_entry.mojom b/services/url_response_disk_cache/url_response_disk_cache_entry.mojom
index 0d12a6e4e3bdfc7a071044ee81e04594cc11a88c..b0e8d17a9db7e9185dea95f844ebb3312b22ce30 100644
--- a/services/url_response_disk_cache/url_response_disk_cache_entry.mojom
+++ b/services/url_response_disk_cache/url_response_disk_cache_entry.mojom
@@ -2,18 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-[DartPackage="mojo_services"]
+// These mojom structs are declared only to get generated serialization code
+// (ie. they are not used for ipc).
module mojo;
-struct CacheHeaders {
- string name;
- string value;
+import "mojo/public/interfaces/network/url_response.mojom";
+
+struct CacheKey {
+ string request_origin;
+ string url;
+ int64 timestamp;
};
// One entry in the service cache.
struct CacheEntry {
- uint32 version = 0;
- string url;
+ URLResponse response;
+ string cache_directory;
ppi 2015/09/15 15:21:22 "cache_directory" is very general. If this dir is
qsr 2015/09/16 11:46:38 Done.
string content_path;
ppi 2015/09/15 15:21:22 wdyt about "response_body_path"?
qsr 2015/09/16 11:46:38 Done.
- array<CacheHeaders>? headers;
};

Powered by Google App Engine
This is Rietveld 408576698