| 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 23 matching lines...) Expand all Loading... |
| 34 #include "content/public/common/console_message_level.h" | 34 #include "content/public/common/console_message_level.h" |
| 35 #include "content/public/common/javascript_message_type.h" | 35 #include "content/public/common/javascript_message_type.h" |
| 36 #include "content/public/common/referrer.h" | 36 #include "content/public/common/referrer.h" |
| 37 #include "content/public/common/stop_find_action.h" | 37 #include "content/public/common/stop_find_action.h" |
| 38 #include "content/public/renderer/render_frame.h" | 38 #include "content/public/renderer/render_frame.h" |
| 39 #include "content/renderer/frame_blame_context.h" | 39 #include "content/renderer/frame_blame_context.h" |
| 40 #include "content/renderer/mojo/blink_interface_provider_impl.h" | 40 #include "content/renderer/mojo/blink_interface_provider_impl.h" |
| 41 #include "content/renderer/renderer_webcookiejar_impl.h" | 41 #include "content/renderer/renderer_webcookiejar_impl.h" |
| 42 #include "ipc/ipc_message.h" | 42 #include "ipc/ipc_message.h" |
| 43 #include "ipc/ipc_platform_file.h" | 43 #include "ipc/ipc_platform_file.h" |
| 44 #include "ipc/ipc_sync_message.h" |
| 44 #include "media/blink/webmediaplayer_delegate.h" | 45 #include "media/blink/webmediaplayer_delegate.h" |
| 45 #include "media/blink/webmediaplayer_params.h" | 46 #include "media/blink/webmediaplayer_params.h" |
| 46 #include "media/mojo/interfaces/remoting.mojom.h" | 47 #include "media/mojo/interfaces/remoting.mojom.h" |
| 47 #include "mojo/public/cpp/bindings/associated_binding.h" | 48 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 48 #include "mojo/public/cpp/bindings/binding.h" | 49 #include "mojo/public/cpp/bindings/binding.h" |
| 49 #include "ppapi/features/features.h" | 50 #include "ppapi/features/features.h" |
| 50 #include "services/service_manager/public/interfaces/connector.mojom.h" | 51 #include "services/service_manager/public/interfaces/connector.mojom.h" |
| 51 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" | 52 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" |
| 52 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" | 53 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" |
| 53 #include "third_party/WebKit/public/platform/WebFocusType.h" | 54 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 // finally get right encoding of page. | 933 // finally get right encoding of page. |
| 933 void UpdateEncoding(blink::WebFrame* frame, | 934 void UpdateEncoding(blink::WebFrame* frame, |
| 934 const std::string& encoding_name); | 935 const std::string& encoding_name); |
| 935 | 936 |
| 936 // Dispatches the current state of selection on the webpage to the browser if | 937 // Dispatches the current state of selection on the webpage to the browser if |
| 937 // it has changed. | 938 // it has changed. |
| 938 // TODO(varunjain): delete this method once we figure out how to keep | 939 // TODO(varunjain): delete this method once we figure out how to keep |
| 939 // selection handles in sync with the webpage. | 940 // selection handles in sync with the webpage. |
| 940 void SyncSelectionIfRequired(); | 941 void SyncSelectionIfRequired(); |
| 941 | 942 |
| 943 // Sends a message and runs a nested message loop. |
| 944 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
| 945 |
| 942 bool RunJavaScriptMessage(JavaScriptMessageType type, | 946 bool RunJavaScriptMessage(JavaScriptMessageType type, |
| 943 const base::string16& message, | 947 const base::string16& message, |
| 944 const base::string16& default_value, | 948 const base::string16& default_value, |
| 945 const GURL& frame_url, | 949 const GURL& frame_url, |
| 946 base::string16* result); | 950 base::string16* result); |
| 947 | 951 |
| 948 // Loads the appropriate error page for the specified failure into the frame. | 952 // Loads the appropriate error page for the specified failure into the frame. |
| 949 // |entry| is only used by PlzNavigate when navigating to a history item. | 953 // |entry| is only used by PlzNavigate when navigating to a history item. |
| 950 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, | 954 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, |
| 951 const blink::WebURLError& error, | 955 const blink::WebURLError& error, |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 bool browser_side_navigation_pending_ = false; | 1347 bool browser_side_navigation_pending_ = false; |
| 1344 | 1348 |
| 1345 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1349 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1346 | 1350 |
| 1347 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1351 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1348 }; | 1352 }; |
| 1349 | 1353 |
| 1350 } // namespace content | 1354 } // namespace content |
| 1351 | 1355 |
| 1352 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1356 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |