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

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

Issue 2379823003: Move MHTML file writing out of the renderer main thread. (Closed)
Patch Set: Address reviewer comments. Created 4 years, 2 months 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 | « no previous file | 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
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 #else 863 #else
864 void OnSelectPopupMenuItems(bool canceled, 864 void OnSelectPopupMenuItems(bool canceled,
865 const std::vector<int>& selected_indices); 865 const std::vector<int>& selected_indices);
866 #endif 866 #endif
867 #endif 867 #endif
868 868
869 #if defined(OS_MACOSX) 869 #if defined(OS_MACOSX)
870 void OnCopyToFindPboard(); 870 void OnCopyToFindPboard();
871 #endif 871 #endif
872 872
873 // Callback scheduled from OnSerializeAsMHTML for when writing serialized
874 // MHTML to file has been completed in the file thread.
875 void OnWriteMHTMLToDiskComplete(
876 int job_id,
877 std::set<std::string> serialized_resources_uri_digests,
878 base::TimeDelta main_thread_use_time,
879 bool success);
880
873 // Requests that the browser process navigates to |url|. If 881 // Requests that the browser process navigates to |url|. If
874 // |is_history_navigation_in_new_child| is true, the browser process should 882 // |is_history_navigation_in_new_child| is true, the browser process should
875 // look for a matching FrameNavigationEntry in the last committed entry to use 883 // look for a matching FrameNavigationEntry in the last committed entry to use
876 // instead of |url|. 884 // instead of |url|.
877 void OpenURL( 885 void OpenURL(
878 const GURL& url, 886 const GURL& url,
879 bool uses_post, 887 bool uses_post,
880 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body, 888 const scoped_refptr<ResourceRequestBodyImpl>& resource_request_body,
881 const Referrer& referrer, 889 const Referrer& referrer,
882 blink::WebNavigationPolicy policy, 890 blink::WebNavigationPolicy policy,
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 remote_associated_interfaces_; 1302 remote_associated_interfaces_;
1295 1303
1296 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1304 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1297 1305
1298 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1306 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1299 }; 1307 };
1300 1308
1301 } // namespace content 1309 } // namespace content
1302 1310
1303 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1311 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698