| 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 16 matching lines...) Expand all Loading... |
| 27 #include "base/single_thread_task_runner.h" | 27 #include "base/single_thread_task_runner.h" |
| 28 #include "build/build_config.h" | 28 #include "build/build_config.h" |
| 29 #include "content/common/accessibility_mode_enums.h" | 29 #include "content/common/accessibility_mode_enums.h" |
| 30 #include "content/common/associated_interface_registry_impl.h" | 30 #include "content/common/associated_interface_registry_impl.h" |
| 31 #include "content/common/download/mhtml_save_status.h" | 31 #include "content/common/download/mhtml_save_status.h" |
| 32 #include "content/common/frame.mojom.h" | 32 #include "content/common/frame.mojom.h" |
| 33 #include "content/common/frame_message_enums.h" | 33 #include "content/common/frame_message_enums.h" |
| 34 #include "content/common/host_zoom.mojom.h" | 34 #include "content/common/host_zoom.mojom.h" |
| 35 #include "content/common/renderer.mojom.h" | 35 #include "content/common/renderer.mojom.h" |
| 36 #include "content/public/common/console_message_level.h" | 36 #include "content/public/common/console_message_level.h" |
| 37 #include "content/public/common/javascript_message_type.h" | 37 #include "content/public/common/javascript_dialog_type.h" |
| 38 #include "content/public/common/previews_state.h" | 38 #include "content/public/common/previews_state.h" |
| 39 #include "content/public/common/referrer.h" | 39 #include "content/public/common/referrer.h" |
| 40 #include "content/public/common/stop_find_action.h" | 40 #include "content/public/common/stop_find_action.h" |
| 41 #include "content/public/renderer/render_frame.h" | 41 #include "content/public/renderer/render_frame.h" |
| 42 #include "content/renderer/frame_blame_context.h" | 42 #include "content/renderer/frame_blame_context.h" |
| 43 #include "content/renderer/mojo/blink_interface_provider_impl.h" | 43 #include "content/renderer/mojo/blink_interface_provider_impl.h" |
| 44 #include "content/renderer/renderer_webcookiejar_impl.h" | 44 #include "content/renderer/renderer_webcookiejar_impl.h" |
| 45 #include "ipc/ipc_message.h" | 45 #include "ipc/ipc_message.h" |
| 46 #include "ipc/ipc_platform_file.h" | 46 #include "ipc/ipc_platform_file.h" |
| 47 #include "media/blink/webmediaplayer_delegate.h" | 47 #include "media/blink/webmediaplayer_delegate.h" |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 // finally get right encoding of page. | 977 // finally get right encoding of page. |
| 978 void UpdateEncoding(blink::WebFrame* frame, | 978 void UpdateEncoding(blink::WebFrame* frame, |
| 979 const std::string& encoding_name); | 979 const std::string& encoding_name); |
| 980 | 980 |
| 981 // Dispatches the current state of selection on the webpage to the browser if | 981 // Dispatches the current state of selection on the webpage to the browser if |
| 982 // it has changed. | 982 // it has changed. |
| 983 // TODO(varunjain): delete this method once we figure out how to keep | 983 // TODO(varunjain): delete this method once we figure out how to keep |
| 984 // selection handles in sync with the webpage. | 984 // selection handles in sync with the webpage. |
| 985 void SyncSelectionIfRequired(); | 985 void SyncSelectionIfRequired(); |
| 986 | 986 |
| 987 bool RunJavaScriptMessage(JavaScriptMessageType type, | 987 bool RunJavaScriptDialog(JavaScriptDialogType type, |
| 988 const base::string16& message, | 988 const base::string16& message, |
| 989 const base::string16& default_value, | 989 const base::string16& default_value, |
| 990 const GURL& frame_url, | 990 const GURL& frame_url, |
| 991 base::string16* result); | 991 base::string16* result); |
| 992 | 992 |
| 993 // Loads the appropriate error page for the specified failure into the frame. | 993 // Loads the appropriate error page for the specified failure into the frame. |
| 994 // |entry| is only used by PlzNavigate when navigating to a history item. | 994 // |entry| is only used by PlzNavigate when navigating to a history item. |
| 995 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, | 995 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, |
| 996 const blink::WebURLError& error, | 996 const blink::WebURLError& error, |
| 997 bool replace, | 997 bool replace, |
| 998 HistoryEntry* entry); | 998 HistoryEntry* entry); |
| 999 | 999 |
| 1000 void HandleJavascriptExecutionResult(const base::string16& javascript, | 1000 void HandleJavascriptExecutionResult(const base::string16& javascript, |
| 1001 int id, | 1001 int id, |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1384 int enabled_bindings_ = 0; | 1384 int enabled_bindings_ = 0; |
| 1385 | 1385 |
| 1386 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1386 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1387 | 1387 |
| 1388 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1388 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1389 }; | 1389 }; |
| 1390 | 1390 |
| 1391 } // namespace content | 1391 } // namespace content |
| 1392 | 1392 |
| 1393 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1393 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |