| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |