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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2886943003: [Offline Pages] Adding missing image/CSS detection in FrameSerializer. (Closed)
Patch Set: comments from dcheng@. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
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 6353 matching lines...) Expand 10 before | Expand all | Expand 10 after
7063 policy(info.default_policy), 7067 policy(info.default_policy),
7064 replaces_current_history_item(info.replaces_current_history_item), 7068 replaces_current_history_item(info.replaces_current_history_item),
7065 history_navigation_in_new_child_frame( 7069 history_navigation_in_new_child_frame(
7066 info.is_history_navigation_in_new_child_frame), 7070 info.is_history_navigation_in_new_child_frame),
7067 client_redirect(info.is_client_redirect), 7071 client_redirect(info.is_client_redirect),
7068 cache_disabled(info.is_cache_disabled), 7072 cache_disabled(info.is_cache_disabled),
7069 form(info.form), 7073 form(info.form),
7070 source_location(info.source_location) {} 7074 source_location(info.source_location) {}
7071 7075
7072 } // namespace content 7076 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698