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

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

Issue 1693563002: PROTOTYPE: PlzNavigate: use a Mojo data pipe to stream navigation data to the renderer. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browser sends URLRequest id to the renderer and renderer uses intermediary buffer for data: none he… Created 4 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 18 matching lines...) Expand all
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/frame_message_enums.h" 32 #include "content/common/frame_message_enums.h"
33 #include "content/common/frame_replication_state.h" 33 #include "content/common/frame_replication_state.h"
34 #include "content/common/image_downloader/image_downloader.mojom.h" 34 #include "content/common/image_downloader/image_downloader.mojom.h"
35 #include "content/common/mojo/service_registry_impl.h" 35 #include "content/common/mojo/service_registry_impl.h"
36 #include "content/common/navigation_params.h" 36 #include "content/common/navigation_params.h"
37 #include "content/public/browser/render_frame_host.h" 37 #include "content/public/browser/render_frame_host.h"
38 #include "content/public/common/javascript_message_type.h" 38 #include "content/public/common/javascript_message_type.h"
39 #include "mojo/public/cpp/system/data_pipe.h"
39 #include "net/http/http_response_headers.h" 40 #include "net/http/http_response_headers.h"
40 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 41 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
41 #include "third_party/WebKit/public/web/WebTextDirection.h" 42 #include "third_party/WebKit/public/web/WebTextDirection.h"
42 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 43 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
43 #include "ui/accessibility/ax_node_data.h" 44 #include "ui/accessibility/ax_node_data.h"
44 #include "ui/base/page_transition_types.h" 45 #include "ui/base/page_transition_types.h"
45 46
46 #if defined(OS_ANDROID) 47 #if defined(OS_ANDROID)
47 #include "content/browser/mojo/service_registry_android.h" 48 #include "content/browser/mojo/service_registry_android.h"
48 #endif 49 #endif
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 void DidSelectPopupMenuItem(int selected_index); 502 void DidSelectPopupMenuItem(int selected_index);
502 void DidCancelPopupMenu(); 503 void DidCancelPopupMenu();
503 #elif defined(OS_ANDROID) 504 #elif defined(OS_ANDROID)
504 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); 505 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
505 void DidCancelPopupMenu(); 506 void DidCancelPopupMenu();
506 #endif 507 #endif
507 508
508 // PlzNavigate: Indicates that a navigation is ready to commit and can be 509 // PlzNavigate: Indicates that a navigation is ready to commit and can be
509 // handled by this RenderFrame. 510 // handled by this RenderFrame.
510 void CommitNavigation(ResourceResponse* response, 511 void CommitNavigation(ResourceResponse* response,
511 scoped_ptr<StreamHandle> body,
512 const CommonNavigationParams& common_params, 512 const CommonNavigationParams& common_params,
513 const RequestNavigationParams& request_params); 513 const RequestNavigationParams& request_params,
514 mojo::ScopedDataPipeConsumerHandle data_consumer_handle,
515 int request_id);
514 516
515 // PlzNavigate 517 // PlzNavigate
516 // Indicates that a navigation failed and that this RenderFrame should display 518 // Indicates that a navigation failed and that this RenderFrame should display
517 // an error page. 519 // an error page.
518 void FailedNavigation(const CommonNavigationParams& common_params, 520 void FailedNavigation(const CommonNavigationParams& common_params,
519 const RequestNavigationParams& request_params, 521 const RequestNavigationParams& request_params,
520 bool has_stale_copy_in_cache, 522 bool has_stale_copy_in_cache,
521 int error_code); 523 int error_code);
522 524
523 // Sets up the Mojo connection between this instance and its associated render 525 // Sets up the Mojo connection between this instance and its associated render
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 944
943 // NOTE: This must be the last member. 945 // NOTE: This must be the last member.
944 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 946 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
945 947
946 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 948 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
947 }; 949 };
948 950
949 } // namespace content 951 } // namespace content
950 952
951 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 953 #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