OLD | NEW |
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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 // WebFrameSerializerClient implementation: | 677 // WebFrameSerializerClient implementation: |
678 void DidSerializeDataForFrame( | 678 void DidSerializeDataForFrame( |
679 const blink::WebCString& data, | 679 const blink::WebCString& data, |
680 blink::WebFrameSerializerClient::FrameSerializationStatus status) | 680 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
681 override; | 681 override; |
682 | 682 |
683 // Binds to the site engagement service in the browser. | 683 // Binds to the site engagement service in the browser. |
684 void BindEngagement(blink::mojom::EngagementClientAssociatedRequest request); | 684 void BindEngagement(blink::mojom::EngagementClientAssociatedRequest request); |
685 | 685 |
686 // Binds to the FrameHost in the browser. | 686 // Binds to the FrameHost in the browser. |
687 void BindFrame(mojom::FrameRequest request, mojom::FrameHostPtr frame_host); | 687 void BindFrame(mojom::FrameRequest request, |
| 688 mojom::FrameHostInterfaceBrokerPtr frame_host); |
| 689 |
| 690 // Virtual so the test render frame can flush the interface. |
| 691 virtual mojom::FrameHostAssociatedPtr GetFrameHost(); |
688 | 692 |
689 void BindFrameBindingsControl( | 693 void BindFrameBindingsControl( |
690 mojom::FrameBindingsControlAssociatedRequest request); | 694 mojom::FrameBindingsControlAssociatedRequest request); |
691 | 695 |
692 ManifestManager* manifest_manager(); | 696 ManifestManager* manifest_manager(); |
693 | 697 |
694 // TODO(creis): Remove when the only caller, the HistoryController, is no | 698 // TODO(creis): Remove when the only caller, the HistoryController, is no |
695 // more. | 699 // more. |
696 void SetPendingNavigationParams( | 700 void SetPendingNavigationParams( |
697 std::unique_ptr<NavigationParams> navigation_params); | 701 std::unique_ptr<NavigationParams> navigation_params); |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 #endif | 1376 #endif |
1373 | 1377 |
1374 HostZoomLevels host_zoom_levels_; | 1378 HostZoomLevels host_zoom_levels_; |
1375 EngagementOriginAndLevel engagement_level_; | 1379 EngagementOriginAndLevel engagement_level_; |
1376 | 1380 |
1377 mojo::AssociatedBinding<blink::mojom::EngagementClient> engagement_binding_; | 1381 mojo::AssociatedBinding<blink::mojom::EngagementClient> engagement_binding_; |
1378 mojo::Binding<mojom::Frame> frame_binding_; | 1382 mojo::Binding<mojom::Frame> frame_binding_; |
1379 mojo::AssociatedBinding<mojom::HostZoom> host_zoom_binding_; | 1383 mojo::AssociatedBinding<mojom::HostZoom> host_zoom_binding_; |
1380 mojo::AssociatedBinding<mojom::FrameBindingsControl> | 1384 mojo::AssociatedBinding<mojom::FrameBindingsControl> |
1381 frame_bindings_control_binding_; | 1385 frame_bindings_control_binding_; |
1382 mojom::FrameHostPtr frame_host_; | 1386 mojom::FrameHostInterfaceBrokerPtr frame_host_interface_broker_; |
1383 | 1387 |
1384 // Indicates whether |didAccessInitialDocument| was called. | 1388 // Indicates whether |didAccessInitialDocument| was called. |
1385 bool has_accessed_initial_document_; | 1389 bool has_accessed_initial_document_; |
1386 | 1390 |
1387 AssociatedInterfaceRegistryImpl associated_interfaces_; | 1391 AssociatedInterfaceRegistryImpl associated_interfaces_; |
1388 std::unique_ptr<AssociatedInterfaceProviderImpl> | 1392 std::unique_ptr<AssociatedInterfaceProviderImpl> |
1389 remote_associated_interfaces_; | 1393 remote_associated_interfaces_; |
1390 | 1394 |
1391 // TODO(dcheng): Remove these members. | 1395 // TODO(dcheng): Remove these members. |
1392 bool committed_first_load_ = false; | 1396 bool committed_first_load_ = false; |
(...skipping 29 matching lines...) Expand all Loading... |
1422 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; | 1426 std::unique_ptr<PendingNavigationInfo> pending_navigation_info_; |
1423 | 1427 |
1424 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1428 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1425 | 1429 |
1426 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1430 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1427 }; | 1431 }; |
1428 | 1432 |
1429 } // namespace content | 1433 } // namespace content |
1430 | 1434 |
1431 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1435 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |