OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 blink::WebFrameSerializerCacheControlPolicy CacheControlPolicy() override { | 690 blink::WebFrameSerializerCacheControlPolicy CacheControlPolicy() override { |
691 return params_.mhtml_cache_control_policy; | 691 return params_.mhtml_cache_control_policy; |
692 } | 692 } |
693 | 693 |
694 bool UseBinaryEncoding() override { return params_.mhtml_binary_encoding; } | 694 bool UseBinaryEncoding() override { return params_.mhtml_binary_encoding; } |
695 | 695 |
696 bool RemovePopupOverlay() override { | 696 bool RemovePopupOverlay() override { |
697 return params_.mhtml_popup_overlay_removal; | 697 return params_.mhtml_popup_overlay_removal; |
698 } | 698 } |
699 | 699 |
| 700 bool UsePageProblemDetectors() override { |
| 701 return params_.mhtml_problem_detection; |
| 702 } |
| 703 |
700 private: | 704 private: |
701 const FrameMsg_SerializeAsMHTML_Params& params_; | 705 const FrameMsg_SerializeAsMHTML_Params& params_; |
702 std::set<std::string>* serialized_resources_uri_digests_; | 706 std::set<std::string>* serialized_resources_uri_digests_; |
703 | 707 |
704 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate); | 708 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate); |
705 }; | 709 }; |
706 | 710 |
707 bool IsHttpPost(const blink::WebURLRequest& request) { | 711 bool IsHttpPost(const blink::WebURLRequest& request) { |
708 return request.HttpMethod().Utf8() == "POST"; | 712 return request.HttpMethod().Utf8() == "POST"; |
709 } | 713 } |
(...skipping 6385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7095 policy(info.default_policy), | 7099 policy(info.default_policy), |
7096 replaces_current_history_item(info.replaces_current_history_item), | 7100 replaces_current_history_item(info.replaces_current_history_item), |
7097 history_navigation_in_new_child_frame( | 7101 history_navigation_in_new_child_frame( |
7098 info.is_history_navigation_in_new_child_frame), | 7102 info.is_history_navigation_in_new_child_frame), |
7099 client_redirect(info.is_client_redirect), | 7103 client_redirect(info.is_client_redirect), |
7100 cache_disabled(info.is_cache_disabled), | 7104 cache_disabled(info.is_cache_disabled), |
7101 form(info.form), | 7105 form(info.form), |
7102 source_location(info.source_location) {} | 7106 source_location(info.source_location) {} |
7103 | 7107 |
7104 } // namespace content | 7108 } // namespace content |
OLD | NEW |