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

Side by Side Diff: content/public/common/mhtml_generation_params.h

Issue 2540483002: Allow Offline MHTML save operations to succeed even with missing frames.
Patch Set: Address code review comments. Created 4 years 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
« no previous file with comments | « content/browser/download/mhtml_generation_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h" 10 #include "third_party/WebKit/public/web/WebFrameSerializerCacheControlPolicy.h"
(...skipping 10 matching lines...) Expand all
21 // Uses Content-Transfer-Encoding: binary when encoding. See 21 // Uses Content-Transfer-Encoding: binary when encoding. See
22 // https://tools.ietf.org/html/rfc2045 for details about 22 // https://tools.ietf.org/html/rfc2045 for details about
23 // Content-Transfer-Encoding. 23 // Content-Transfer-Encoding.
24 bool use_binary_encoding = false; 24 bool use_binary_encoding = false;
25 25
26 // By default, MHTML includes all subresources. This flag can be used to 26 // By default, MHTML includes all subresources. This flag can be used to
27 // cause the generator to fail or silently ignore resources if the 27 // cause the generator to fail or silently ignore resources if the
28 // Cache-Control header is used. 28 // Cache-Control header is used.
29 blink::WebFrameSerializerCacheControlPolicy cache_control_policy = 29 blink::WebFrameSerializerCacheControlPolicy cache_control_policy =
30 blink::WebFrameSerializerCacheControlPolicy::None; 30 blink::WebFrameSerializerCacheControlPolicy::None;
31
32 // This setting defaults to |false|. If set to |true| it allows the saving
33 // operation to still succeed even when frames go missing during the saving
34 // process (with the obvious exception of the main frame).
35 bool ignore_missing_frames = false;
31 }; 36 };
32 37
33 } // namespace content 38 } // namespace content
34 39
35 #endif // CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_ 40 #endif // CONTENT_PUBLIC_COMMON_MHTML_GENERATION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/browser/download/mhtml_generation_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698