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

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

Issue 2813243002: network service: pass PlzNavigate resulting data via mojo data pipe (Closed)
Patch Set: ahem Created 3 years, 8 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
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 25 matching lines...) Expand all
36 #include "content/common/features.h" 36 #include "content/common/features.h"
37 #include "content/common/frame.mojom.h" 37 #include "content/common/frame.mojom.h"
38 #include "content/common/frame_message_enums.h" 38 #include "content/common/frame_message_enums.h"
39 #include "content/common/frame_replication_state.h" 39 #include "content/common/frame_replication_state.h"
40 #include "content/common/image_downloader/image_downloader.mojom.h" 40 #include "content/common/image_downloader/image_downloader.mojom.h"
41 #include "content/common/navigation_params.h" 41 #include "content/common/navigation_params.h"
42 #include "content/public/browser/render_frame_host.h" 42 #include "content/public/browser/render_frame_host.h"
43 #include "content/public/common/javascript_dialog_type.h" 43 #include "content/public/common/javascript_dialog_type.h"
44 #include "content/public/common/previews_state.h" 44 #include "content/public/common/previews_state.h"
45 #include "media/mojo/interfaces/interface_factory.mojom.h" 45 #include "media/mojo/interfaces/interface_factory.mojom.h"
46 #include "mojo/public/cpp/system/data_pipe.h"
46 #include "net/http/http_response_headers.h" 47 #include "net/http/http_response_headers.h"
47 #include "services/service_manager/public/cpp/interface_factory.h" 48 #include "services/service_manager/public/cpp/interface_factory.h"
48 #include "services/service_manager/public/cpp/interface_registry.h" 49 #include "services/service_manager/public/cpp/interface_registry.h"
49 #include "third_party/WebKit/public/platform/WebFocusType.h" 50 #include "third_party/WebKit/public/platform/WebFocusType.h"
50 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 51 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
51 #include "third_party/WebKit/public/web/WebTextDirection.h" 52 #include "third_party/WebKit/public/web/WebTextDirection.h"
52 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 53 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
53 #include "ui/accessibility/ax_node_data.h" 54 #include "ui/accessibility/ax_node_data.h"
54 #include "ui/base/mojo/window_open_disposition.mojom.h" 55 #include "ui/base/mojo/window_open_disposition.mojom.h"
55 #include "ui/base/page_transition_types.h" 56 #include "ui/base/page_transition_types.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 #else 533 #else
533 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); 534 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
534 void DidCancelPopupMenu(); 535 void DidCancelPopupMenu();
535 #endif 536 #endif
536 #endif 537 #endif
537 538
538 // PlzNavigate: Indicates that a navigation is ready to commit and can be 539 // PlzNavigate: Indicates that a navigation is ready to commit and can be
539 // handled by this RenderFrame. 540 // handled by this RenderFrame.
540 void CommitNavigation(ResourceResponse* response, 541 void CommitNavigation(ResourceResponse* response,
541 std::unique_ptr<StreamHandle> body, 542 std::unique_ptr<StreamHandle> body,
543 mojo::ScopedDataPipeConsumerHandle handle,
542 const CommonNavigationParams& common_params, 544 const CommonNavigationParams& common_params,
543 const RequestNavigationParams& request_params, 545 const RequestNavigationParams& request_params,
544 bool is_view_source); 546 bool is_view_source);
545 547
546 // PlzNavigate 548 // PlzNavigate
547 // Indicates that a navigation failed and that this RenderFrame should display 549 // Indicates that a navigation failed and that this RenderFrame should display
548 // an error page. 550 // an error page.
549 void FailedNavigation(const CommonNavigationParams& common_params, 551 void FailedNavigation(const CommonNavigationParams& common_params,
550 const BeginNavigationParams& begin_params, 552 const BeginNavigationParams& begin_params,
551 const RequestNavigationParams& request_params, 553 const RequestNavigationParams& request_params,
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 1176
1175 // NOTE: This must be the last member. 1177 // NOTE: This must be the last member.
1176 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1178 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1177 1179
1178 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1180 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1179 }; 1181 };
1180 1182
1181 } // namespace content 1183 } // namespace content
1182 1184
1183 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1185 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698