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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 const GURL& stream_url, | 758 const GURL& stream_url, |
758 const CommonNavigationParams& common_params, | 759 const CommonNavigationParams& common_params, |
759 const RequestNavigationParams& request_params); | 760 const RequestNavigationParams& request_params); |
760 void OnFailedNavigation(const CommonNavigationParams& common_params, | 761 void OnFailedNavigation(const CommonNavigationParams& common_params, |
761 const RequestNavigationParams& request_params, | 762 const RequestNavigationParams& request_params, |
762 bool has_stale_copy_in_cache, | 763 bool has_stale_copy_in_cache, |
763 int error_code); | 764 int error_code); |
764 void OnGetSavableResourceLinks(); | 765 void OnGetSavableResourceLinks(); |
765 void OnGetSerializedHtmlWithLocalLinks( | 766 void OnGetSerializedHtmlWithLocalLinks( |
766 const std::map<GURL, base::FilePath>& url_to_local_path); | 767 const std::map<GURL, base::FilePath>& url_to_local_path); |
| 768 void OnSerializeAsMHTML( |
| 769 int job_id, |
| 770 IPC::PlatformFileForTransit file_for_transit, |
| 771 const std::string& mhtml_boundary_marker, |
| 772 const std::map<int, std::string>& frame_routing_id_to_content_id, |
| 773 bool is_last_frame); |
767 | 774 |
768 // Requests that the browser process navigates to |url|. If | 775 // Requests that the browser process navigates to |url|. If |
769 // |is_history_navigation_in_new_child| is true, the browser process should | 776 // |is_history_navigation_in_new_child| is true, the browser process should |
770 // look for a matching FrameNavigationEntry in the last committed entry to use | 777 // look for a matching FrameNavigationEntry in the last committed entry to use |
771 // instead of |url|. | 778 // instead of |url|. |
772 void OpenURL(const GURL& url, | 779 void OpenURL(const GURL& url, |
773 const Referrer& referrer, | 780 const Referrer& referrer, |
774 blink::WebNavigationPolicy policy, | 781 blink::WebNavigationPolicy policy, |
775 bool should_replace_current_entry, | 782 bool should_replace_current_entry, |
776 bool is_history_navigation_in_new_child); | 783 bool is_history_navigation_in_new_child); |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 #endif | 1126 #endif |
1120 | 1127 |
1121 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1128 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1122 | 1129 |
1123 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1130 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1124 }; | 1131 }; |
1125 | 1132 |
1126 } // namespace content | 1133 } // namespace content |
1127 | 1134 |
1128 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1135 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |