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

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

Issue 2886943003: [Offline Pages] Adding missing image/CSS detection in FrameSerializer. (Closed)
Patch Set: finally fixed. 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
« no previous file with comments | « content/common/frame_messages.h ('k') | third_party/WebKit/Source/core/frame/FrameSerializer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 blink::WebFrameSerializerCacheControlPolicy CacheControlPolicy() override { 633 blink::WebFrameSerializerCacheControlPolicy CacheControlPolicy() override {
634 return params_.mhtml_cache_control_policy; 634 return params_.mhtml_cache_control_policy;
635 } 635 }
636 636
637 bool UseBinaryEncoding() override { return params_.mhtml_binary_encoding; } 637 bool UseBinaryEncoding() override { return params_.mhtml_binary_encoding; }
638 638
639 bool RemovePopupOverlay() override { 639 bool RemovePopupOverlay() override {
640 return params_.mhtml_popup_overlay_removal; 640 return params_.mhtml_popup_overlay_removal;
641 } 641 }
642 642
643 bool UsePageProblemDetectors() override {
644 return params_.mhtml_problem_detection;
645 }
646
643 private: 647 private:
644 const FrameMsg_SerializeAsMHTML_Params& params_; 648 const FrameMsg_SerializeAsMHTML_Params& params_;
645 std::set<std::string>* serialized_resources_uri_digests_; 649 std::set<std::string>* serialized_resources_uri_digests_;
646 650
647 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate); 651 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate);
648 }; 652 };
649 653
650 bool IsHttpPost(const blink::WebURLRequest& request) { 654 bool IsHttpPost(const blink::WebURLRequest& request) {
651 return request.HttpMethod().Utf8() == "POST"; 655 return request.HttpMethod().Utf8() == "POST";
652 } 656 }
(...skipping 6129 matching lines...) Expand 10 before | Expand all | Expand 10 after
6782 policy(info.default_policy), 6786 policy(info.default_policy),
6783 replaces_current_history_item(info.replaces_current_history_item), 6787 replaces_current_history_item(info.replaces_current_history_item),
6784 history_navigation_in_new_child_frame( 6788 history_navigation_in_new_child_frame(
6785 info.is_history_navigation_in_new_child_frame), 6789 info.is_history_navigation_in_new_child_frame),
6786 client_redirect(info.is_client_redirect), 6790 client_redirect(info.is_client_redirect),
6787 cache_disabled(info.is_cache_disabled), 6791 cache_disabled(info.is_cache_disabled),
6788 form(info.form), 6792 form(info.form),
6789 source_location(info.source_location) {} 6793 source_location(info.source_location) {}
6790 6794
6791 } // namespace content 6795 } // namespace content
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | third_party/WebKit/Source/core/frame/FrameSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698