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

Unified Diff: content/common/cache_storage/cache_storage_types.h

Issue 1039763002: Cache Storage: Move files to content/*/cache_storage, rename classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 5 years, 9 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: content/common/cache_storage/cache_storage_types.h
diff --git a/content/common/cache_storage/cache_storage_types.h b/content/common/cache_storage/cache_storage_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..26ac5e0fdeb46378a831aabcbb3114c0cd76b835
--- /dev/null
+++ b/content/common/cache_storage/cache_storage_types.h
@@ -0,0 +1,52 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_
+#define CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_
+
+#include <map>
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/strings/string16.h"
+#include "content/common/content_export.h"
+#include "content/common/service_worker/service_worker_types.h"
+
+// This file is to have common definitions that are to be shared by
+// browser and child process.
+
+namespace content {
+
+// Controls how requests are matched in the Cache API.
+struct CONTENT_EXPORT CacheStorageCacheQueryParams {
+ CacheStorageCacheQueryParams();
+
+ bool ignore_search;
+ bool ignore_method;
+ bool ignore_vary;
+ base::string16 cache_name;
+};
+
+// The type of a single batch operation in the Cache API.
+enum CacheStorageCacheOperationType {
+ CACHE_STORAGE_CACHE_OPERATION_TYPE_UNDEFINED,
+ CACHE_STORAGE_CACHE_OPERATION_TYPE_PUT,
+ CACHE_STORAGE_CACHE_OPERATION_TYPE_DELETE,
+ CACHE_STORAGE_CACHE_OPERATION_TYPE_LAST =
+ CACHE_STORAGE_CACHE_OPERATION_TYPE_DELETE
+};
+
+// A single batch operation for the Cache API.
+struct CONTENT_EXPORT CacheStorageBatchOperation {
+ CacheStorageBatchOperation();
+
+ CacheStorageCacheOperationType operation_type;
+ ServiceWorkerFetchRequest request;
+ ServiceWorkerResponse response;
+ CacheStorageCacheQueryParams match_params;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_CACHE_STORAGE_CACHE_STORAGE_TYPES_H_
« no previous file with comments | « content/common/cache_storage/cache_storage_messages.h ('k') | content/common/cache_storage/cache_storage_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698