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

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: Rebase Created 3 years, 6 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "content/common/image_downloader/image_downloader.mojom.h" 42 #include "content/common/image_downloader/image_downloader.mojom.h"
43 #include "content/common/navigation_params.h" 43 #include "content/common/navigation_params.h"
44 #include "content/public/browser/render_frame_host.h" 44 #include "content/public/browser/render_frame_host.h"
45 #include "content/public/common/javascript_dialog_type.h" 45 #include "content/public/common/javascript_dialog_type.h"
46 #include "content/public/common/previews_state.h" 46 #include "content/public/common/previews_state.h"
47 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h" 47 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h"
48 #include "media/mojo/interfaces/interface_factory.mojom.h" 48 #include "media/mojo/interfaces/interface_factory.mojom.h"
49 #include "mojo/public/cpp/bindings/binding_set.h" 49 #include "mojo/public/cpp/bindings/binding_set.h"
50 #include "mojo/public/cpp/system/data_pipe.h" 50 #include "mojo/public/cpp/system/data_pipe.h"
51 #include "net/http/http_response_headers.h" 51 #include "net/http/http_response_headers.h"
52 #include "services/resource_coordinator/public/cpp/resource_coordinator_interfac e.h"
52 #include "third_party/WebKit/public/platform/WebFocusType.h" 53 #include "third_party/WebKit/public/platform/WebFocusType.h"
53 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 54 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
54 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj om.h" 55 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj om.h"
55 #include "third_party/WebKit/public/web/WebTextDirection.h" 56 #include "third_party/WebKit/public/web/WebTextDirection.h"
56 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 57 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
57 #include "ui/accessibility/ax_node_data.h" 58 #include "ui/accessibility/ax_node_data.h"
58 #include "ui/base/mojo/window_open_disposition.mojom.h" 59 #include "ui/base/mojo/window_open_disposition.mojom.h"
59 #include "ui/base/page_transition_types.h" 60 #include "ui/base/page_transition_types.h"
60 61
61 #if defined(OS_ANDROID) 62 #if defined(OS_ANDROID)
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 569
569 // Destroys the pending WebUI and resets related data. 570 // Destroys the pending WebUI and resets related data.
570 void ClearPendingWebUI(); 571 void ClearPendingWebUI();
571 572
572 // Destroys all WebUI instances and resets related data. 573 // Destroys all WebUI instances and resets related data.
573 void ClearAllWebUI(); 574 void ClearAllWebUI();
574 575
575 // Returns the Mojo ImageDownloader service. 576 // Returns the Mojo ImageDownloader service.
576 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader(); 577 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader();
577 578
579 resource_coordinator::ResourceCoordinatorInterface*
580 GetFrameResourceCoordinator() override;
581
578 // Resets the loading state. Following this call, the RenderFrameHost will be 582 // Resets the loading state. Following this call, the RenderFrameHost will be
579 // in a non-loading state. 583 // in a non-loading state.
580 void ResetLoadingState(); 584 void ResetLoadingState();
581 585
582 // Returns the feature policy which should be enforced on this RenderFrame. 586 // Returns the feature policy which should be enforced on this RenderFrame.
583 FeaturePolicy* feature_policy() { return feature_policy_.get(); } 587 FeaturePolicy* feature_policy() { return feature_policy_.get(); }
584 588
585 // Clears any existing policy and constructs a new policy for this frame, 589 // Clears any existing policy and constructs a new policy for this frame,
586 // based on its parent frame. 590 // based on its parent frame.
587 void ResetFeaturePolicy(); 591 void ResetFeaturePolicy();
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 // PlzNavigate: Owns the stream used in navigations to store the body of the 1133 // PlzNavigate: Owns the stream used in navigations to store the body of the
1130 // response once it has started. 1134 // response once it has started.
1131 std::unique_ptr<StreamHandle> stream_handle_; 1135 std::unique_ptr<StreamHandle> stream_handle_;
1132 1136
1133 // Context shared for each mojom::PermissionService instance created for this 1137 // Context shared for each mojom::PermissionService instance created for this
1134 // RFH. 1138 // RFH.
1135 std::unique_ptr<PermissionServiceContext> permission_service_context_; 1139 std::unique_ptr<PermissionServiceContext> permission_service_context_;
1136 1140
1137 // Holder of Mojo connection with ImageDownloader service in RenderFrame. 1141 // Holder of Mojo connection with ImageDownloader service in RenderFrame.
1138 content::mojom::ImageDownloaderPtr mojo_image_downloader_; 1142 content::mojom::ImageDownloaderPtr mojo_image_downloader_;
1143 std::unique_ptr<resource_coordinator::ResourceCoordinatorInterface>
1144 frame_resource_coordinator_;
1139 1145
1140 // Tracks a navigation happening in this frame. Note that while there can be 1146 // Tracks a navigation happening in this frame. Note that while there can be
1141 // two navigations in the same FrameTreeNode, there can only be one 1147 // two navigations in the same FrameTreeNode, there can only be one
1142 // navigation per RenderFrameHost. 1148 // navigation per RenderFrameHost.
1143 // PlzNavigate: before the navigation is ready to be committed, the 1149 // PlzNavigate: before the navigation is ready to be committed, the
1144 // NavigationHandle for it is owned by the NavigationRequest. 1150 // NavigationHandle for it is owned by the NavigationRequest.
1145 std::unique_ptr<NavigationHandleImpl> navigation_handle_; 1151 std::unique_ptr<NavigationHandleImpl> navigation_handle_;
1146 1152
1147 // The associated WebUIImpl and its type. They will be set if the current 1153 // The associated WebUIImpl and its type. They will be set if the current
1148 // document is from WebUI source. Otherwise they will be null and 1154 // document is from WebUI source. Otherwise they will be null and
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 1240
1235 // NOTE: This must be the last member. 1241 // NOTE: This must be the last member.
1236 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1242 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1237 1243
1238 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1244 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1239 }; 1245 };
1240 1246
1241 } // namespace content 1247 } // namespace content
1242 1248
1243 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1249 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698