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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2519273002: Fail when saving page as MHTML provides information about the cause. (Closed)
Patch Set: Minor changes. Created 4 years, 1 month 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "base/time/time.h" 22 #include "base/time/time.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "content/browser/accessibility/browser_accessibility_manager.h" 24 #include "content/browser/accessibility/browser_accessibility_manager.h"
25 #include "content/browser/bad_message.h" 25 #include "content/browser/bad_message.h"
26 #include "content/browser/loader/global_routing_id.h" 26 #include "content/browser/loader/global_routing_id.h"
27 #include "content/browser/site_instance_impl.h" 27 #include "content/browser/site_instance_impl.h"
28 #include "content/browser/webui/web_ui_impl.h" 28 #include "content/browser/webui/web_ui_impl.h"
29 #include "content/common/accessibility_mode_enums.h" 29 #include "content/common/accessibility_mode_enums.h"
30 #include "content/common/ax_content_node_data.h" 30 #include "content/common/ax_content_node_data.h"
31 #include "content/common/content_export.h" 31 #include "content/common/content_export.h"
32 #include "content/common/download/mhtml_save_status.h"
32 #include "content/common/frame.mojom.h" 33 #include "content/common/frame.mojom.h"
33 #include "content/common/frame_message_enums.h" 34 #include "content/common/frame_message_enums.h"
34 #include "content/common/frame_replication_state.h" 35 #include "content/common/frame_replication_state.h"
35 #include "content/common/image_downloader/image_downloader.mojom.h" 36 #include "content/common/image_downloader/image_downloader.mojom.h"
36 #include "content/common/navigation_params.h" 37 #include "content/common/navigation_params.h"
37 #include "content/public/browser/render_frame_host.h" 38 #include "content/public/browser/render_frame_host.h"
38 #include "content/public/common/javascript_message_type.h" 39 #include "content/public/common/javascript_message_type.h"
39 #include "media/mojo/interfaces/interface_factory.mojom.h" 40 #include "media/mojo/interfaces/interface_factory.mojom.h"
40 #include "net/http/http_response_headers.h" 41 #include "net/http/http_response_headers.h"
41 #include "services/service_manager/public/cpp/interface_factory.h" 42 #include "services/service_manager/public/cpp/interface_factory.h"
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 int hit_obj_id); 687 int hit_obj_id);
687 void OnAccessibilitySnapshotResponse( 688 void OnAccessibilitySnapshotResponse(
688 int callback_id, 689 int callback_id,
689 const AXContentTreeUpdate& snapshot); 690 const AXContentTreeUpdate& snapshot);
690 void OnToggleFullscreen(bool enter_fullscreen); 691 void OnToggleFullscreen(bool enter_fullscreen);
691 void OnDidStartLoading(bool to_different_document); 692 void OnDidStartLoading(bool to_different_document);
692 void OnDidStopLoading(); 693 void OnDidStopLoading();
693 void OnDidChangeLoadProgress(double load_progress); 694 void OnDidChangeLoadProgress(double load_progress);
694 void OnSerializeAsMHTMLResponse( 695 void OnSerializeAsMHTMLResponse(
695 int job_id, 696 int job_id,
696 bool success, 697 MhtmlSaveStatus save_status,
697 const std::set<std::string>& digests_of_uris_of_serialized_resources, 698 const std::set<std::string>& digests_of_uris_of_serialized_resources,
698 base::TimeDelta renderer_main_thread_time); 699 base::TimeDelta renderer_main_thread_time);
699 void OnSelectionChanged(const base::string16& text, 700 void OnSelectionChanged(const base::string16& text,
700 uint32_t offset, 701 uint32_t offset,
701 const gfx::Range& range); 702 const gfx::Range& range);
702 703
703 #if defined(USE_EXTERNAL_POPUP_MENU) 704 #if defined(USE_EXTERNAL_POPUP_MENU)
704 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 705 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
705 void OnHidePopup(); 706 void OnHidePopup();
706 #endif 707 #endif
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 remote_associated_interfaces_; 1065 remote_associated_interfaces_;
1065 // NOTE: This must be the last member. 1066 // NOTE: This must be the last member.
1066 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1067 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1067 1068
1068 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1069 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1069 }; 1070 };
1070 1071
1071 } // namespace content 1072 } // namespace content
1072 1073
1073 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1074 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698