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

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

Issue 2519273002: Fail when saving page as MHTML provides information about the cause. (Closed)
Patch Set: Fixed typo. Created 4 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 #if defined(OS_MACOSX) 884 #if defined(OS_MACOSX)
884 void OnCopyToFindPboard(); 885 void OnCopyToFindPboard();
885 #endif 886 #endif
886 887
887 // Callback scheduled from OnSerializeAsMHTML for when writing serialized 888 // Callback scheduled from OnSerializeAsMHTML for when writing serialized
888 // MHTML to file has been completed in the file thread. 889 // MHTML to file has been completed in the file thread.
889 void OnWriteMHTMLToDiskComplete( 890 void OnWriteMHTMLToDiskComplete(
890 int job_id, 891 int job_id,
891 std::set<std::string> serialized_resources_uri_digests, 892 std::set<std::string> serialized_resources_uri_digests,
892 base::TimeDelta main_thread_use_time, 893 base::TimeDelta main_thread_use_time,
893 bool success); 894 MhtmlSaveStatus save_status);
894 895
895 // Requests that the browser process navigates to |url|. If 896 // Requests that the browser process navigates to |url|. If
896 // |is_history_navigation_in_new_child| is true, the browser process should 897 // |is_history_navigation_in_new_child| is true, the browser process should
897 // look for a matching FrameNavigationEntry in the last committed entry to use 898 // look for a matching FrameNavigationEntry in the last committed entry to use
898 // instead of |url|. 899 // instead of |url|.
899 void OpenURL( 900 void OpenURL(
900 const GURL& url, 901 const GURL& url,
901 bool uses_post, 902 bool uses_post,
902 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body, 903 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body,
903 const std::string& extra_headers, 904 const std::string& extra_headers,
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 bool browser_side_navigation_pending_ = false; 1347 bool browser_side_navigation_pending_ = false;
1347 1348
1348 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1349 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1349 1350
1350 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1351 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1351 }; 1352 };
1352 1353
1353 } // namespace content 1354 } // namespace content
1354 1355
1355 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1356 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698