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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <deque> | 11 #include <deque> |
12 #include <map> | 12 #include <map> |
13 #include <memory> | 13 #include <memory> |
14 #include <set> | 14 #include <set> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/gtest_prod_util.h" | 19 #include "base/gtest_prod_util.h" |
20 #include "base/id_map.h" | 20 #include "base/id_map.h" |
21 #include "base/macros.h" | 21 #include "base/macros.h" |
22 #include "base/memory/linked_ptr.h" | 22 #include "base/memory/linked_ptr.h" |
23 #include "base/memory/ref_counted.h" | 23 #include "base/memory/ref_counted.h" |
24 #include "base/memory/weak_ptr.h" | 24 #include "base/memory/weak_ptr.h" |
25 #include "base/observer_list.h" | 25 #include "base/observer_list.h" |
26 #include "base/process/process_handle.h" | 26 #include "base/process/process_handle.h" |
27 #include "build/build_config.h" | 27 #include "build/build_config.h" |
28 #include "content/common/accessibility_mode_enums.h" | 28 #include "content/common/accessibility_mode_enums.h" |
29 #include "content/common/associated_interface_registry_impl.h" | 29 #include "content/common/associated_interface_registry_impl.h" |
| 30 #include "content/common/download/mhtml_save_status.h" |
30 #include "content/common/frame.mojom.h" | 31 #include "content/common/frame.mojom.h" |
31 #include "content/common/frame_message_enums.h" | 32 #include "content/common/frame_message_enums.h" |
32 #include "content/common/host_zoom.mojom.h" | 33 #include "content/common/host_zoom.mojom.h" |
33 #include "content/common/renderer.mojom.h" | 34 #include "content/common/renderer.mojom.h" |
34 #include "content/public/common/console_message_level.h" | 35 #include "content/public/common/console_message_level.h" |
35 #include "content/public/common/javascript_message_type.h" | 36 #include "content/public/common/javascript_message_type.h" |
36 #include "content/public/common/referrer.h" | 37 #include "content/public/common/referrer.h" |
37 #include "content/public/common/stop_find_action.h" | 38 #include "content/public/common/stop_find_action.h" |
38 #include "content/public/renderer/render_frame.h" | 39 #include "content/public/renderer/render_frame.h" |
39 #include "content/renderer/frame_blame_context.h" | 40 #include "content/renderer/frame_blame_context.h" |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 #if defined(OS_MACOSX) | 882 #if defined(OS_MACOSX) |
882 void OnCopyToFindPboard(); | 883 void OnCopyToFindPboard(); |
883 #endif | 884 #endif |
884 | 885 |
885 // Callback scheduled from OnSerializeAsMHTML for when writing serialized | 886 // Callback scheduled from OnSerializeAsMHTML for when writing serialized |
886 // MHTML to file has been completed in the file thread. | 887 // MHTML to file has been completed in the file thread. |
887 void OnWriteMHTMLToDiskComplete( | 888 void OnWriteMHTMLToDiskComplete( |
888 int job_id, | 889 int job_id, |
889 std::set<std::string> serialized_resources_uri_digests, | 890 std::set<std::string> serialized_resources_uri_digests, |
890 base::TimeDelta main_thread_use_time, | 891 base::TimeDelta main_thread_use_time, |
891 bool success); | 892 MhtmlSaveStatus save_status); |
892 | 893 |
893 // Requests that the browser process navigates to |url|. If | 894 // Requests that the browser process navigates to |url|. If |
894 // |is_history_navigation_in_new_child| is true, the browser process should | 895 // |is_history_navigation_in_new_child| is true, the browser process should |
895 // look for a matching FrameNavigationEntry in the last committed entry to use | 896 // look for a matching FrameNavigationEntry in the last committed entry to use |
896 // instead of |url|. | 897 // instead of |url|. |
897 void OpenURL( | 898 void OpenURL( |
898 const GURL& url, | 899 const GURL& url, |
899 bool uses_post, | 900 bool uses_post, |
900 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body, | 901 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body, |
901 const std::string& extra_headers, | 902 const std::string& extra_headers, |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 bool browser_side_navigation_pending_ = false; | 1341 bool browser_side_navigation_pending_ = false; |
1341 | 1342 |
1342 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1343 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1343 | 1344 |
1344 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1345 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1345 }; | 1346 }; |
1346 | 1347 |
1347 } // namespace content | 1348 } // namespace content |
1348 | 1349 |
1349 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1350 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |