| 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_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 Loading... |
| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 #elif defined(OS_ANDROID) | 475 #elif defined(OS_ANDROID) |
| 475 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 476 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
| 476 void DidCancelPopupMenu(); | 477 void DidCancelPopupMenu(); |
| 477 #endif | 478 #endif |
| 478 | 479 |
| 479 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 480 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
| 480 // handled by this RenderFrame. | 481 // handled by this RenderFrame. |
| 481 void CommitNavigation(ResourceResponse* response, | 482 void CommitNavigation(ResourceResponse* response, |
| 482 scoped_ptr<StreamHandle> body, | 483 scoped_ptr<StreamHandle> body, |
| 483 const CommonNavigationParams& common_params, | 484 const CommonNavigationParams& common_params, |
| 484 const RequestNavigationParams& request_params); | 485 const RequestNavigationParams& request_params, |
| 486 mojo::ScopedDataPipeConsumerHandle data_consumer_handle)
; |
| 485 | 487 |
| 486 // PlzNavigate | 488 // PlzNavigate |
| 487 // Indicates that a navigation failed and that this RenderFrame should display | 489 // Indicates that a navigation failed and that this RenderFrame should display |
| 488 // an error page. | 490 // an error page. |
| 489 void FailedNavigation(const CommonNavigationParams& common_params, | 491 void FailedNavigation(const CommonNavigationParams& common_params, |
| 490 const RequestNavigationParams& request_params, | 492 const RequestNavigationParams& request_params, |
| 491 bool has_stale_copy_in_cache, | 493 bool has_stale_copy_in_cache, |
| 492 int error_code); | 494 int error_code); |
| 493 | 495 |
| 494 // Sets up the Mojo connection between this instance and its associated render | 496 // Sets up the Mojo connection between this instance and its associated render |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 | 896 |
| 895 // NOTE: This must be the last member. | 897 // NOTE: This must be the last member. |
| 896 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 898 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 897 | 899 |
| 898 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 900 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 899 }; | 901 }; |
| 900 | 902 |
| 901 } // namespace content | 903 } // namespace content |
| 902 | 904 |
| 903 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 905 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |