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

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

Issue 2640923003: Remove popup overlay from MHTML when requested (Closed)
Patch Set: Rebase 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 const std::string& content_id = it->second; 776 const std::string& content_id = it->second;
777 return WebString::fromUTF8(content_id); 777 return WebString::fromUTF8(content_id);
778 } 778 }
779 779
780 blink::WebFrameSerializerCacheControlPolicy cacheControlPolicy() override { 780 blink::WebFrameSerializerCacheControlPolicy cacheControlPolicy() override {
781 return params_.mhtml_cache_control_policy; 781 return params_.mhtml_cache_control_policy;
782 } 782 }
783 783
784 bool useBinaryEncoding() override { return params_.mhtml_binary_encoding; } 784 bool useBinaryEncoding() override { return params_.mhtml_binary_encoding; }
785 785
786 bool removePopupOverlay() override {
787 return params_.mhtml_popup_overlay_removal;
788 }
789
786 private: 790 private:
787 const FrameMsg_SerializeAsMHTML_Params& params_; 791 const FrameMsg_SerializeAsMHTML_Params& params_;
788 std::set<std::string>* serialized_resources_uri_digests_; 792 std::set<std::string>* serialized_resources_uri_digests_;
789 793
790 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate); 794 DISALLOW_COPY_AND_ASSIGN(MHTMLPartsGenerationDelegate);
791 }; 795 };
792 796
793 bool IsHttpPost(const blink::WebURLRequest& request) { 797 bool IsHttpPost(const blink::WebURLRequest& request) {
794 return request.httpMethod().utf8() == "POST"; 798 return request.httpMethod().utf8() == "POST";
795 } 799 }
(...skipping 6082 matching lines...) Expand 10 before | Expand all | Expand 10 after
6878 // event target. Potentially a Pepper plugin will receive the event. 6882 // event target. Potentially a Pepper plugin will receive the event.
6879 // In order to tell whether a plugin gets the last mouse event and which it 6883 // In order to tell whether a plugin gets the last mouse event and which it
6880 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6884 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6881 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6885 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6882 // |pepper_last_mouse_event_target_|. 6886 // |pepper_last_mouse_event_target_|.
6883 pepper_last_mouse_event_target_ = nullptr; 6887 pepper_last_mouse_event_target_ = nullptr;
6884 #endif 6888 #endif
6885 } 6889 }
6886 6890
6887 } // namespace content 6891 } // 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