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

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

Issue 2710823003: NOCOMMIT prototype: GRC service plumbing and process priority
Patch Set: Buildfixes Created 3 years, 9 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 24 matching lines...) Expand all
35 #include "content/common/frame.mojom.h" 35 #include "content/common/frame.mojom.h"
36 #include "content/common/frame_message_enums.h" 36 #include "content/common/frame_message_enums.h"
37 #include "content/common/frame_replication_state.h" 37 #include "content/common/frame_replication_state.h"
38 #include "content/common/image_downloader/image_downloader.mojom.h" 38 #include "content/common/image_downloader/image_downloader.mojom.h"
39 #include "content/common/navigation_params.h" 39 #include "content/common/navigation_params.h"
40 #include "content/public/browser/render_frame_host.h" 40 #include "content/public/browser/render_frame_host.h"
41 #include "content/public/common/javascript_dialog_type.h" 41 #include "content/public/common/javascript_dialog_type.h"
42 #include "content/public/common/previews_state.h" 42 #include "content/public/common/previews_state.h"
43 #include "media/mojo/interfaces/interface_factory.mojom.h" 43 #include "media/mojo/interfaces/interface_factory.mojom.h"
44 #include "net/http/http_response_headers.h" 44 #include "net/http/http_response_headers.h"
45 #include "services/resource_coordinator/public/cpp/resource_coordinator_interfac e.h"
45 #include "services/service_manager/public/cpp/interface_factory.h" 46 #include "services/service_manager/public/cpp/interface_factory.h"
46 #include "services/service_manager/public/cpp/interface_registry.h" 47 #include "services/service_manager/public/cpp/interface_registry.h"
47 #include "third_party/WebKit/public/platform/WebFocusType.h" 48 #include "third_party/WebKit/public/platform/WebFocusType.h"
48 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 49 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
49 #include "third_party/WebKit/public/web/WebTextDirection.h" 50 #include "third_party/WebKit/public/web/WebTextDirection.h"
50 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 51 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
51 #include "ui/accessibility/ax_node_data.h" 52 #include "ui/accessibility/ax_node_data.h"
52 #include "ui/base/mojo/window_open_disposition.mojom.h" 53 #include "ui/base/mojo/window_open_disposition.mojom.h"
53 #include "ui/base/page_transition_types.h" 54 #include "ui/base/page_transition_types.h"
54 55
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 572
572 // Destroys the pending WebUI and resets related data. 573 // Destroys the pending WebUI and resets related data.
573 void ClearPendingWebUI(); 574 void ClearPendingWebUI();
574 575
575 // Destroys all WebUI instances and resets related data. 576 // Destroys all WebUI instances and resets related data.
576 void ClearAllWebUI(); 577 void ClearAllWebUI();
577 578
578 // Returns the Mojo ImageDownloader service. 579 // Returns the Mojo ImageDownloader service.
579 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader(); 580 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader();
580 581
582 resource_coordinator::ResourceCoordinatorInterface*
583 GetFrameResourceCoordinator();
584
581 // Resets the loading state. Following this call, the RenderFrameHost will be 585 // Resets the loading state. Following this call, the RenderFrameHost will be
582 // in a non-loading state. 586 // in a non-loading state.
583 void ResetLoadingState(); 587 void ResetLoadingState();
584 588
585 // Returns the feature policy which should be enforced on this RenderFrame. 589 // Returns the feature policy which should be enforced on this RenderFrame.
586 FeaturePolicy* get_feature_policy() { return feature_policy_.get(); } 590 FeaturePolicy* get_feature_policy() { return feature_policy_.get(); }
587 591
588 // Clears any existing policy and constructs a new policy for this frame, 592 // Clears any existing policy and constructs a new policy for this frame,
589 // based on its parent frame. 593 // based on its parent frame.
590 void ResetFeaturePolicy(); 594 void ResetFeaturePolicy();
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 // PlzNavigate: Owns the stream used in navigations to store the body of the 1055 // PlzNavigate: Owns the stream used in navigations to store the body of the
1052 // response once it has started. 1056 // response once it has started.
1053 std::unique_ptr<StreamHandle> stream_handle_; 1057 std::unique_ptr<StreamHandle> stream_handle_;
1054 1058
1055 // Context shared for each mojom::PermissionService instance created for this 1059 // Context shared for each mojom::PermissionService instance created for this
1056 // RFH. 1060 // RFH.
1057 std::unique_ptr<PermissionServiceContext> permission_service_context_; 1061 std::unique_ptr<PermissionServiceContext> permission_service_context_;
1058 1062
1059 // Holder of Mojo connection with ImageDownloader service in RenderFrame. 1063 // Holder of Mojo connection with ImageDownloader service in RenderFrame.
1060 content::mojom::ImageDownloaderPtr mojo_image_downloader_; 1064 content::mojom::ImageDownloaderPtr mojo_image_downloader_;
1065 std::unique_ptr<resource_coordinator::ResourceCoordinatorInterface>
1066 frame_resource_coordinator_;
1061 1067
1062 // Tracks a navigation happening in this frame. Note that while there can be 1068 // Tracks a navigation happening in this frame. Note that while there can be
1063 // two navigations in the same FrameTreeNode, there can only be one 1069 // two navigations in the same FrameTreeNode, there can only be one
1064 // navigation per RenderFrameHost. 1070 // navigation per RenderFrameHost.
1065 // PlzNavigate: before the navigation is ready to be committed, the 1071 // PlzNavigate: before the navigation is ready to be committed, the
1066 // NavigationHandle for it is owned by the NavigationRequest. 1072 // NavigationHandle for it is owned by the NavigationRequest.
1067 std::unique_ptr<NavigationHandleImpl> navigation_handle_; 1073 std::unique_ptr<NavigationHandleImpl> navigation_handle_;
1068 1074
1069 // The associated WebUIImpl and its type. They will be set if the current 1075 // The associated WebUIImpl and its type. They will be set if the current
1070 // document is from WebUI source. Otherwise they will be null and 1076 // document is from WebUI source. Otherwise they will be null and
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 1135
1130 // NOTE: This must be the last member. 1136 // NOTE: This must be the last member.
1131 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1137 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1132 1138
1133 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1139 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1134 }; 1140 };
1135 1141
1136 } // namespace content 1142 } // namespace content
1137 1143
1138 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1144 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698