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

Unified Diff: third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h

Issue 1947263004: Introduces a new MHTML generation parameter specifying different behvaior for cache-control headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto origin/master. Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrameSerializer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h
diff --git a/third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h b/third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h
new file mode 100644
index 0000000000000000000000000000000000000000..baf1be6861e8ce210400fe430294dbd045141da9
--- /dev/null
+++ b/third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h
@@ -0,0 +1,24 @@
+// Copyright 2016 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 WebFrameSerializerCacheControlPolicy_h
+#define WebFrameSerializerCacheControlPolicy_h
+
+namespace blink {
+
+// WebFrameSerializerCacheControlPolicy configures how WebFrameSerializer
+// processes resources with different Cache-Control headers. By default, frame
+// serialization encompasses all resources in a page. If it is desirable to
+// serialize only those resources that could be stored by a http cache, the
+// other options may be used.
+// TODO(dewittj): Add more policies for subframes and subresources.
+enum class WebFrameSerializerCacheControlPolicy {
+ None = 0,
+ FailForNoStoreMainFrame,
+ Last = FailForNoStoreMainFrame,
+};
+
+} // namespace blink
+
+#endif // WebFrameSerializerCacheControlPolicy_h
« no previous file with comments | « third_party/WebKit/public/web/WebFrameSerializer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698