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

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

Issue 1417323006: OOPIFs: Deduplicating MHTML parts across frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-serialization-per-frame
Patch Set: Rebasing... Created 5 years 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 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 26 matching lines...) Expand all
37 #include "third_party/WebKit/public/web/WebAXObject.h" 37 #include "third_party/WebKit/public/web/WebAXObject.h"
38 #include "third_party/WebKit/public/web/WebDataSource.h" 38 #include "third_party/WebKit/public/web/WebDataSource.h"
39 #include "third_party/WebKit/public/web/WebFrameClient.h" 39 #include "third_party/WebKit/public/web/WebFrameClient.h"
40 #include "third_party/WebKit/public/web/WebFrameLoadType.h" 40 #include "third_party/WebKit/public/web/WebFrameLoadType.h"
41 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 41 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
42 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" 42 #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
43 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" 43 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h"
44 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" 44 #include "third_party/WebKit/public/web/WebPageSerializerClient.h"
45 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" 45 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h"
46 #include "ui/gfx/range/range.h" 46 #include "ui/gfx/range/range.h"
47 #include "url/gurl.h"
47 48
48 #if defined(ENABLE_PLUGINS) 49 #if defined(ENABLE_PLUGINS)
49 #include "content/renderer/pepper/plugin_power_saver_helper.h" 50 #include "content/renderer/pepper/plugin_power_saver_helper.h"
50 #endif 51 #endif
51 52
52 #if defined(OS_ANDROID) 53 #if defined(OS_ANDROID)
53 #include "content/renderer/media/android/renderer_media_player_manager.h" 54 #include "content/renderer/media/android/renderer_media_player_manager.h"
54 #endif 55 #endif
55 56
56 #if defined(ENABLE_MOJO_MEDIA) 57 #if defined(ENABLE_MOJO_MEDIA)
57 #include "media/mojo/interfaces/service_factory.mojom.h" 58 #include "media/mojo/interfaces/service_factory.mojom.h"
58 #endif 59 #endif
59 60
60 class GURL;
61 class TransportDIB; 61 class TransportDIB;
62 struct FrameMsg_NewFrame_WidgetParams; 62 struct FrameMsg_NewFrame_WidgetParams;
63 struct FrameMsg_PostMessage_Params; 63 struct FrameMsg_PostMessage_Params;
64 struct FrameMsg_SerializeAsMHTML_Params;
64 struct FrameMsg_TextTrackSettings_Params; 65 struct FrameMsg_TextTrackSettings_Params;
65 66
66 namespace blink { 67 namespace blink {
67 class WebGeolocationClient; 68 class WebGeolocationClient;
68 class WebMouseEvent; 69 class WebMouseEvent;
69 class WebContentDecryptionModule; 70 class WebContentDecryptionModule;
70 class WebMediaPlayer; 71 class WebMediaPlayer;
71 class WebPresentationClient; 72 class WebPresentationClient;
72 class WebPushClient; 73 class WebPushClient;
73 class WebSecurityOrigin; 74 class WebSecurityOrigin;
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 const GURL& stream_url, 779 const GURL& stream_url,
779 const CommonNavigationParams& common_params, 780 const CommonNavigationParams& common_params,
780 const RequestNavigationParams& request_params); 781 const RequestNavigationParams& request_params);
781 void OnFailedNavigation(const CommonNavigationParams& common_params, 782 void OnFailedNavigation(const CommonNavigationParams& common_params,
782 const RequestNavigationParams& request_params, 783 const RequestNavigationParams& request_params,
783 bool has_stale_copy_in_cache, 784 bool has_stale_copy_in_cache,
784 int error_code); 785 int error_code);
785 void OnGetSavableResourceLinks(); 786 void OnGetSavableResourceLinks();
786 void OnGetSerializedHtmlWithLocalLinks( 787 void OnGetSerializedHtmlWithLocalLinks(
787 const std::map<GURL, base::FilePath>& url_to_local_path); 788 const std::map<GURL, base::FilePath>& url_to_local_path);
788 void OnSerializeAsMHTML( 789 void OnSerializeAsMHTML(const FrameMsg_SerializeAsMHTML_Params& params);
789 int job_id,
790 IPC::PlatformFileForTransit file_for_transit,
791 const std::string& mhtml_boundary_marker,
792 const std::map<int, std::string>& frame_routing_id_to_content_id,
793 bool is_last_frame);
794 790
795 // Requests that the browser process navigates to |url|. If 791 // Requests that the browser process navigates to |url|. If
796 // |is_history_navigation_in_new_child| is true, the browser process should 792 // |is_history_navigation_in_new_child| is true, the browser process should
797 // look for a matching FrameNavigationEntry in the last committed entry to use 793 // look for a matching FrameNavigationEntry in the last committed entry to use
798 // instead of |url|. 794 // instead of |url|.
799 void OpenURL(const GURL& url, 795 void OpenURL(const GURL& url,
800 const Referrer& referrer, 796 const Referrer& referrer,
801 blink::WebNavigationPolicy policy, 797 blink::WebNavigationPolicy policy,
802 bool should_replace_current_entry, 798 bool should_replace_current_entry,
803 bool is_history_navigation_in_new_child); 799 bool is_history_navigation_in_new_child);
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 #endif 1160 #endif
1165 1161
1166 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1162 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1167 1163
1168 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1164 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1169 }; 1165 };
1170 1166
1171 } // namespace content 1167 } // namespace content
1172 1168
1173 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1169 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698