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

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

Issue 2640923003: 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
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 6079 matching lines...) Expand 10 before | Expand all | Expand 10 after
6874 // event target. Potentially a Pepper plugin will receive the event. 6878 // event target. Potentially a Pepper plugin will receive the event.
6875 // In order to tell whether a plugin gets the last mouse event and which it 6879 // In order to tell whether a plugin gets the last mouse event and which it
6876 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6880 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6877 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6881 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6878 // |pepper_last_mouse_event_target_|. 6882 // |pepper_last_mouse_event_target_|.
6879 pepper_last_mouse_event_target_ = nullptr; 6883 pepper_last_mouse_event_target_ = nullptr;
6880 #endif 6884 #endif
6881 } 6885 }
6882 6886
6883 } // namespace content 6887 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698