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

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

Issue 2656713002: Merge to M57: Remove popup overlay from MHTML when requested (Closed)
Patch Set: Created 3 years, 11 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/public/common/mhtml_generation_params.h ('k') | content/test/data/popup.html » ('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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 const std::string& content_id = it->second; 775 const std::string& content_id = it->second;
776 return WebString::fromUTF8(content_id); 776 return WebString::fromUTF8(content_id);
777 } 777 }
778 778
779 blink::WebFrameSerializerCacheControlPolicy cacheControlPolicy() override { 779 blink::WebFrameSerializerCacheControlPolicy cacheControlPolicy() override {
780 return params_.mhtml_cache_control_policy; 780 return params_.mhtml_cache_control_policy;
781 } 781 }
782 782
783 bool useBinaryEncoding() override { return params_.mhtml_binary_encoding; } 783 bool useBinaryEncoding() override { return params_.mhtml_binary_encoding; }
784 784
785 bool removePopupOverlay() override {
786 return params_.mhtml_popup_overlay_removal;
787 }
788
785 private: 789 private:
786 const FrameMsg_SerializeAsMHTML_Params& params_; 790 const FrameMsg_SerializeAsMHTML_Params& params_;
787 std::set<std::string>* serialized_resources_uri_digests_; 791 std::set<std::string>* serialized_resources_uri_digests_;
788 792
789 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate); 793 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate);
790 }; 794 };
791 795
792 bool IsHttpPost(const blink::WebURLRequest& request) { 796 bool IsHttpPost(const blink::WebURLRequest& request) {
793 return request.httpMethod().utf8() == "POST"; 797 return request.httpMethod().utf8() == "POST";
794 } 798 }
(...skipping 6068 matching lines...) Expand 10 before | Expand all | Expand 10 after
6863 // event target. Potentially a Pepper plugin will receive the event. 6867 // event target. Potentially a Pepper plugin will receive the event.
6864 // In order to tell whether a plugin gets the last mouse event and which it 6868 // In order to tell whether a plugin gets the last mouse event and which it
6865 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6869 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6866 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6870 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6867 // |pepper_last_mouse_event_target_|. 6871 // |pepper_last_mouse_event_target_|.
6868 pepper_last_mouse_event_target_ = nullptr; 6872 pepper_last_mouse_event_target_ = nullptr;
6869 #endif 6873 #endif
6870 } 6874 }
6871 6875
6872 } // namespace content 6876 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/mhtml_generation_params.h ('k') | content/test/data/popup.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698