| 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 media::MediaPermission* GetMediaPermission(); | 666 media::MediaPermission* GetMediaPermission(); |
| 667 | 667 |
| 668 // Sends the current frame's navigation state to the browser. | 668 // Sends the current frame's navigation state to the browser. |
| 669 void SendUpdateState(); | 669 void SendUpdateState(); |
| 670 | 670 |
| 671 // Creates a MojoBindingsController if Mojo bindings have been enabled for | 671 // Creates a MojoBindingsController if Mojo bindings have been enabled for |
| 672 // this frame. For WebUI, this allows the page to communicate with the browser | 672 // this frame. For WebUI, this allows the page to communicate with the browser |
| 673 // process; for layout tests, this allows the test to mock out services at | 673 // process; for layout tests, this allows the test to mock out services at |
| 674 // the Mojo IPC layer. | 674 // the Mojo IPC layer. |
| 675 void MaybeEnableMojoBindings(); | 675 void MaybeEnableMojoBindings(); |
| 676 // Adds the given file chooser request to the file_chooser_completion_ queue |
| 677 // (see that var for more) and requests the chooser be displayed if there are |
| 678 // no other waiting items in the queue. |
| 679 // |
| 680 // Returns true if the chooser was successfully scheduled. False means we |
| 681 // didn't schedule anything. |
| 682 bool ScheduleFileChooser(const FileChooserParams& params, |
| 683 blink::WebFileChooserCompletion* completion); |
| 676 | 684 |
| 677 // Plugin-related functions -------------------------------------------------- | 685 // Plugin-related functions -------------------------------------------------- |
| 678 | 686 |
| 679 #if defined(ENABLE_PLUGINS) | 687 #if defined(ENABLE_PLUGINS) |
| 680 PepperPluginInstanceImpl* focused_pepper_plugin() { | 688 PepperPluginInstanceImpl* focused_pepper_plugin() { |
| 681 return focused_pepper_plugin_; | 689 return focused_pepper_plugin_; |
| 682 } | 690 } |
| 683 PepperPluginInstanceImpl* pepper_last_mouse_event_target() { | 691 PepperPluginInstanceImpl* pepper_last_mouse_event_target() { |
| 684 return pepper_last_mouse_event_target_; | 692 return pepper_last_mouse_event_target_; |
| 685 } | 693 } |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 // TODO(varunjain): delete this method once we figure out how to keep | 940 // TODO(varunjain): delete this method once we figure out how to keep |
| 933 // selection handles in sync with the webpage. | 941 // selection handles in sync with the webpage. |
| 934 void SyncSelectionIfRequired(); | 942 void SyncSelectionIfRequired(); |
| 935 | 943 |
| 936 bool RunJavaScriptMessage(JavaScriptMessageType type, | 944 bool RunJavaScriptMessage(JavaScriptMessageType type, |
| 937 const base::string16& message, | 945 const base::string16& message, |
| 938 const base::string16& default_value, | 946 const base::string16& default_value, |
| 939 const GURL& frame_url, | 947 const GURL& frame_url, |
| 940 base::string16* result); | 948 base::string16* result); |
| 941 | 949 |
| 942 // Adds the given file chooser request to the file_chooser_completion_ queue | |
| 943 // (see that var for more) and requests the chooser be displayed if there are | |
| 944 // no other waiting items in the queue. | |
| 945 // | |
| 946 // Returns true if the chooser was successfully scheduled. False means we | |
| 947 // didn't schedule anything. | |
| 948 bool ScheduleFileChooser(const FileChooserParams& params, | |
| 949 blink::WebFileChooserCompletion* completion); | |
| 950 | |
| 951 // Loads the appropriate error page for the specified failure into the frame. | 950 // Loads the appropriate error page for the specified failure into the frame. |
| 952 // |entry| is only used by PlzNavigate when navigating to a history item. | 951 // |entry| is only used by PlzNavigate when navigating to a history item. |
| 953 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, | 952 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, |
| 954 const blink::WebURLError& error, | 953 const blink::WebURLError& error, |
| 955 bool replace, | 954 bool replace, |
| 956 HistoryEntry* entry); | 955 HistoryEntry* entry); |
| 957 | 956 |
| 958 void HandleJavascriptExecutionResult(const base::string16& javascript, | 957 void HandleJavascriptExecutionResult(const base::string16& javascript, |
| 959 int id, | 958 int id, |
| 960 bool notify_result, | 959 bool notify_result, |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 bool name_changed_before_first_commit_ = false; | 1326 bool name_changed_before_first_commit_ = false; |
| 1328 | 1327 |
| 1329 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1328 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1330 | 1329 |
| 1331 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1330 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1332 }; | 1331 }; |
| 1333 | 1332 |
| 1334 } // namespace content | 1333 } // namespace content |
| 1335 | 1334 |
| 1336 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1335 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |