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 #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/WebFocusType.h" | 33 #include "third_party/WebKit/public/platform/WebFocusType.h" |
33 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | 34 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" |
34 #include "third_party/WebKit/public/web/WebAXObject.h" | 35 #include "third_party/WebKit/public/web/WebAXObject.h" |
35 #include "third_party/WebKit/public/web/WebDataSource.h" | 36 #include "third_party/WebKit/public/web/WebDataSource.h" |
36 #include "third_party/WebKit/public/web/WebFrameClient.h" | 37 #include "third_party/WebKit/public/web/WebFrameClient.h" |
37 #include "third_party/WebKit/public/web/WebFrameLoadType.h" | 38 #include "third_party/WebKit/public/web/WebFrameLoadType.h" |
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 const GURL& stream_url, | 768 const GURL& stream_url, |
768 const CommonNavigationParams& common_params, | 769 const CommonNavigationParams& common_params, |
769 const RequestNavigationParams& request_params); | 770 const RequestNavigationParams& request_params); |
770 void OnFailedNavigation(const CommonNavigationParams& common_params, | 771 void OnFailedNavigation(const CommonNavigationParams& common_params, |
771 const RequestNavigationParams& request_params, | 772 const RequestNavigationParams& request_params, |
772 bool has_stale_copy_in_cache, | 773 bool has_stale_copy_in_cache, |
773 int error_code); | 774 int error_code); |
774 void OnGetSavableResourceLinks(); | 775 void OnGetSavableResourceLinks(); |
775 void OnGetSerializedHtmlWithLocalLinks( | 776 void OnGetSerializedHtmlWithLocalLinks( |
776 const std::map<GURL, base::FilePath>& url_to_local_path); | 777 const std::map<GURL, base::FilePath>& url_to_local_path); |
| 778 void OnSerializeAsMHTML( |
| 779 int job_id, |
| 780 IPC::PlatformFileForTransit file_for_transit, |
| 781 const std::string& mhtml_boundary_marker, |
| 782 const std::map<int, std::string>& frame_routing_id_to_content_id, |
| 783 bool is_last_frame); |
777 | 784 |
778 // Requests that the browser process navigates to |url|. If | 785 // Requests that the browser process navigates to |url|. If |
779 // |is_history_navigation_in_new_child| is true, the browser process should | 786 // |is_history_navigation_in_new_child| is true, the browser process should |
780 // look for a matching FrameNavigationEntry in the last committed entry to use | 787 // look for a matching FrameNavigationEntry in the last committed entry to use |
781 // instead of |url|. | 788 // instead of |url|. |
782 void OpenURL(const GURL& url, | 789 void OpenURL(const GURL& url, |
783 const Referrer& referrer, | 790 const Referrer& referrer, |
784 blink::WebNavigationPolicy policy, | 791 blink::WebNavigationPolicy policy, |
785 bool should_replace_current_entry, | 792 bool should_replace_current_entry, |
786 bool is_history_navigation_in_new_child); | 793 bool is_history_navigation_in_new_child); |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 #endif | 1136 #endif |
1130 | 1137 |
1131 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1138 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1132 | 1139 |
1133 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1140 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1134 }; | 1141 }; |
1135 | 1142 |
1136 } // namespace content | 1143 } // namespace content |
1137 | 1144 |
1138 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1145 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |