| 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 RecordPeripheralDecision record_decision) const override; | 462 RecordPeripheralDecision record_decision) const override; |
| 463 void WhitelistContentOrigin(const url::Origin& content_origin) override; | 463 void WhitelistContentOrigin(const url::Origin& content_origin) override; |
| 464 void PluginDidStartLoading() override; | 464 void PluginDidStartLoading() override; |
| 465 void PluginDidStopLoading() override; | 465 void PluginDidStopLoading() override; |
| 466 #endif | 466 #endif |
| 467 bool IsFTPDirectoryListing() override; | 467 bool IsFTPDirectoryListing() override; |
| 468 void AttachGuest(int element_instance_id) override; | 468 void AttachGuest(int element_instance_id) override; |
| 469 void DetachGuest(int element_instance_id) override; | 469 void DetachGuest(int element_instance_id) override; |
| 470 void SetSelectedText(const base::string16& selection_text, | 470 void SetSelectedText(const base::string16& selection_text, |
| 471 size_t offset, | 471 size_t offset, |
| 472 const gfx::Range& range) override; | 472 const gfx::Range& range, |
| 473 bool user_initiated) override; |
| 473 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, | 474 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
| 474 v8::Local<v8::Context> context) override; | 475 v8::Local<v8::Context> context) override; |
| 475 void AddMessageToConsole(ConsoleMessageLevel level, | 476 void AddMessageToConsole(ConsoleMessageLevel level, |
| 476 const std::string& message) override; | 477 const std::string& message) override; |
| 477 PreviewsState GetPreviewsState() const override; | 478 PreviewsState GetPreviewsState() const override; |
| 478 bool IsPasting() const override; | 479 bool IsPasting() const override; |
| 479 blink::WebPageVisibilityState GetVisibilityState() const override; | 480 blink::WebPageVisibilityState GetVisibilityState() const override; |
| 480 bool IsBrowserSideNavigationPending() override; | 481 bool IsBrowserSideNavigationPending() override; |
| 481 base::SingleThreadTaskRunner* GetTimerTaskRunner() override; | 482 base::SingleThreadTaskRunner* GetTimerTaskRunner() override; |
| 482 base::SingleThreadTaskRunner* GetLoadingTaskRunner() override; | 483 base::SingleThreadTaskRunner* GetLoadingTaskRunner() override; |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 // c) function:DidFinishDocumentLoadForFrame. When this function is | 1014 // c) function:DidFinishDocumentLoadForFrame. When this function is |
| 1014 // called, that means we have got whole html page. In here we should | 1015 // called, that means we have got whole html page. In here we should |
| 1015 // finally get right encoding of page. | 1016 // finally get right encoding of page. |
| 1016 void UpdateEncoding(blink::WebFrame* frame, | 1017 void UpdateEncoding(blink::WebFrame* frame, |
| 1017 const std::string& encoding_name); | 1018 const std::string& encoding_name); |
| 1018 | 1019 |
| 1019 // Dispatches the current state of selection on the webpage to the browser if | 1020 // Dispatches the current state of selection on the webpage to the browser if |
| 1020 // it has changed. | 1021 // it has changed. |
| 1021 // TODO(varunjain): delete this method once we figure out how to keep | 1022 // TODO(varunjain): delete this method once we figure out how to keep |
| 1022 // selection handles in sync with the webpage. | 1023 // selection handles in sync with the webpage. |
| 1023 void SyncSelectionIfRequired(); | 1024 void SyncSelectionIfRequired(bool user_initiated); |
| 1024 | 1025 |
| 1025 bool RunJavaScriptDialog(JavaScriptDialogType type, | 1026 bool RunJavaScriptDialog(JavaScriptDialogType type, |
| 1026 const base::string16& message, | 1027 const base::string16& message, |
| 1027 const base::string16& default_value, | 1028 const base::string16& default_value, |
| 1028 const GURL& frame_url, | 1029 const GURL& frame_url, |
| 1029 base::string16* result); | 1030 base::string16* result); |
| 1030 | 1031 |
| 1031 // Loads the appropriate error page for the specified failure into the frame. | 1032 // Loads the appropriate error page for the specified failure into the frame. |
| 1032 // |entry| is only used by PlzNavigate when navigating to a history item. | 1033 // |entry| is only used by PlzNavigate when navigating to a history item. |
| 1033 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, | 1034 void LoadNavigationErrorPage(const blink::WebURLRequest& failed_request, |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_; | 1474 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_; |
| 1474 | 1475 |
| 1475 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1476 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1476 | 1477 |
| 1477 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1478 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1478 }; | 1479 }; |
| 1479 | 1480 |
| 1480 } // namespace content | 1481 } // namespace content |
| 1481 | 1482 |
| 1482 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1483 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |