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

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

Issue 1386873003: OOPIFs: Transitioning MHTML generation from view-oriented to frame-oriented. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-generation-mgr-cleanup
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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/id_map.h" 14 #include "base/id_map.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/observer_list.h" 17 #include "base/observer_list.h"
18 #include "base/process/process_handle.h" 18 #include "base/process/process_handle.h"
19 #include "content/common/accessibility_mode_enums.h" 19 #include "content/common/accessibility_mode_enums.h"
20 #include "content/common/frame_message_enums.h" 20 #include "content/common/frame_message_enums.h"
21 #include "content/public/common/console_message_level.h" 21 #include "content/public/common/console_message_level.h"
22 #include "content/public/common/javascript_message_type.h" 22 #include "content/public/common/javascript_message_type.h"
23 #include "content/public/common/referrer.h" 23 #include "content/public/common/referrer.h"
24 #include "content/public/renderer/render_frame.h" 24 #include "content/public/renderer/render_frame.h"
25 #include "content/renderer/render_frame_proxy.h" 25 #include "content/renderer/render_frame_proxy.h"
26 #include "content/renderer/renderer_webcookiejar_impl.h" 26 #include "content/renderer/renderer_webcookiejar_impl.h"
27 #include "ipc/ipc_message.h" 27 #include "ipc/ipc_message.h"
28 #include "ipc/ipc_platform_file.h"
28 #include "media/blink/webmediaplayer_delegate.h" 29 #include "media/blink/webmediaplayer_delegate.h"
29 #include "media/blink/webmediaplayer_params.h" 30 #include "media/blink/webmediaplayer_params.h"
30 #include "mojo/application/public/interfaces/service_provider.mojom.h" 31 #include "mojo/application/public/interfaces/service_provider.mojom.h"
31 #include "mojo/application/public/interfaces/shell.mojom.h" 32 #include "mojo/application/public/interfaces/shell.mojom.h"
32 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 33 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
33 #include "third_party/WebKit/public/web/WebAXObject.h" 34 #include "third_party/WebKit/public/web/WebAXObject.h"
34 #include "third_party/WebKit/public/web/WebDataSource.h" 35 #include "third_party/WebKit/public/web/WebDataSource.h"
35 #include "third_party/WebKit/public/web/WebFrameClient.h" 36 #include "third_party/WebKit/public/web/WebFrameClient.h"
36 #include "third_party/WebKit/public/web/WebFrameLoadType.h" 37 #include "third_party/WebKit/public/web/WebFrameLoadType.h"
37 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 38 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 const RequestNavigationParams& request_params); 764 const RequestNavigationParams& request_params);
764 void OnFailedNavigation(const CommonNavigationParams& common_params, 765 void OnFailedNavigation(const CommonNavigationParams& common_params,
765 const RequestNavigationParams& request_params, 766 const RequestNavigationParams& request_params,
766 bool has_stale_copy_in_cache, 767 bool has_stale_copy_in_cache,
767 int error_code); 768 int error_code);
768 void OnGetSavableResourceLinks(); 769 void OnGetSavableResourceLinks();
769 void OnGetSerializedHtmlWithLocalLinks( 770 void OnGetSerializedHtmlWithLocalLinks(
770 std::vector<GURL> original_urls, 771 std::vector<GURL> original_urls,
771 std::vector<base::FilePath> equivalent_local_paths, 772 std::vector<base::FilePath> equivalent_local_paths,
772 base::FilePath local_directory_path); 773 base::FilePath local_directory_path);
774 void OnSerializeAsMHTML(
775 int job_id,
776 IPC::PlatformFileForTransit file_for_transit,
777 const std::string& mhtml_boundary_marker,
778 const std::map<int, std::string>& frame_routing_id_to_content_id,
779 bool is_last_frame);
773 780
774 // Requests that the browser process navigates to |url|. If 781 // Requests that the browser process navigates to |url|. If
775 // |is_history_navigation_in_new_child| is true, the browser process should 782 // |is_history_navigation_in_new_child| is true, the browser process should
776 // look for a matching FrameNavigationEntry in the last committed entry to use 783 // look for a matching FrameNavigationEntry in the last committed entry to use
777 // instead of |url|. 784 // instead of |url|.
778 void OpenURL(const GURL& url, 785 void OpenURL(const GURL& url,
779 const Referrer& referrer, 786 const Referrer& referrer,
780 blink::WebNavigationPolicy policy, 787 blink::WebNavigationPolicy policy,
781 bool should_replace_current_entry, 788 bool should_replace_current_entry,
782 bool is_history_navigation_in_new_child); 789 bool is_history_navigation_in_new_child);
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 #endif 1129 #endif
1123 1130
1124 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1131 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1125 1132
1126 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1133 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1127 }; 1134 };
1128 1135
1129 } // namespace content 1136 } // namespace content
1130 1137
1131 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1138 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698