| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
| 10 #include "WebFrame.h" | 10 #include "WebFrame.h" |
| 11 #include "WebFrameLoadType.h" | 11 #include "WebFrameLoadType.h" |
| 12 #include "WebHistoryItem.h" | 12 #include "WebHistoryItem.h" |
| 13 #include "public/platform/WebCachePolicy.h" | 13 #include "public/platform/WebCachePolicy.h" |
| 14 #include "public/platform/WebURLError.h" | 14 #include "public/platform/WebURLError.h" |
| 15 #include "public/platform/WebURLRequest.h" | 15 #include "public/platform/WebURLRequest.h" |
| 16 #include "public/platform/site_engagement.mojom-shared.h" | 16 #include "public/platform/site_engagement.mojom-shared.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 class InterfaceProvider; | 24 class InterfaceProvider; |
| 25 class InterfaceRegistry; | 25 class InterfaceRegistry; |
| 26 class WebAutofillClient; | 26 class WebAutofillClient; |
| 27 class WebContentSettingsClient; | 27 class WebContentSettingsClient; |
| 28 class WebData; |
| 28 class WebDevToolsAgent; | 29 class WebDevToolsAgent; |
| 29 class WebDevToolsAgentClient; | 30 class WebDevToolsAgentClient; |
| 30 class WebDoubleSize; | 31 class WebDoubleSize; |
| 31 class WebFrameClient; | 32 class WebFrameClient; |
| 32 class WebFrameWidget; | 33 class WebFrameWidget; |
| 33 class WebInputMethodController; | 34 class WebInputMethodController; |
| 34 class WebRange; | 35 class WebRange; |
| 35 class WebScriptExecutionCallback; | 36 class WebScriptExecutionCallback; |
| 36 class WebSharedWorkerRepositoryClient; | 37 class WebSharedWorkerRepositoryClient; |
| 37 class WebTextCheckClient; | 38 class WebTextCheckClient; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const WebURL& override_url = WebURL()) const = 0; | 147 const WebURL& override_url = WebURL()) const = 0; |
| 147 | 148 |
| 148 // Load the given URL. For history navigations, a valid WebHistoryItem | 149 // Load the given URL. For history navigations, a valid WebHistoryItem |
| 149 // should be given, as well as a WebHistoryLoadType. | 150 // should be given, as well as a WebHistoryLoadType. |
| 150 virtual void Load(const WebURLRequest&, | 151 virtual void Load(const WebURLRequest&, |
| 151 WebFrameLoadType = WebFrameLoadType::kStandard, | 152 WebFrameLoadType = WebFrameLoadType::kStandard, |
| 152 const WebHistoryItem& = WebHistoryItem(), | 153 const WebHistoryItem& = WebHistoryItem(), |
| 153 WebHistoryLoadType = kWebHistoryDifferentDocumentLoad, | 154 WebHistoryLoadType = kWebHistoryDifferentDocumentLoad, |
| 154 bool is_client_redirect = false) = 0; | 155 bool is_client_redirect = false) = 0; |
| 155 | 156 |
| 157 // This method is short-hand for calling LoadData, where mime_type is |
| 158 // "text/html" and text_encoding is "UTF-8". |
| 159 virtual void LoadHTMLString(const WebData& html, |
| 160 const WebURL& base_url, |
| 161 const WebURL& unreachable_url = WebURL(), |
| 162 bool replace = false) = 0; |
| 163 |
| 156 // Loads the given data with specific mime type and optional text | 164 // Loads the given data with specific mime type and optional text |
| 157 // encoding. For HTML data, baseURL indicates the security origin of | 165 // encoding. For HTML data, baseURL indicates the security origin of |
| 158 // the document and is used to resolve links. If specified, | 166 // the document and is used to resolve links. If specified, |
| 159 // unreachableURL is reported via WebDataSource::unreachableURL. If | 167 // unreachableURL is reported via WebDataSource::unreachableURL. If |
| 160 // replace is false, then this data will be loaded as a normal | 168 // replace is false, then this data will be loaded as a normal |
| 161 // navigation. Otherwise, the current history item will be replaced. | 169 // navigation. Otherwise, the current history item will be replaced. |
| 162 virtual void LoadData(const WebData&, | 170 virtual void LoadData(const WebData&, |
| 163 const WebString& mime_type, | 171 const WebString& mime_type, |
| 164 const WebString& text_encoding, | 172 const WebString& text_encoding, |
| 165 const WebURL& base_url, | 173 const WebURL& base_url, |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 // to call these on a WebLocalFrame. | 597 // to call these on a WebLocalFrame. |
| 590 bool IsWebLocalFrame() const override = 0; | 598 bool IsWebLocalFrame() const override = 0; |
| 591 WebLocalFrame* ToWebLocalFrame() override = 0; | 599 WebLocalFrame* ToWebLocalFrame() override = 0; |
| 592 bool IsWebRemoteFrame() const override = 0; | 600 bool IsWebRemoteFrame() const override = 0; |
| 593 WebRemoteFrame* ToWebRemoteFrame() override = 0; | 601 WebRemoteFrame* ToWebRemoteFrame() override = 0; |
| 594 }; | 602 }; |
| 595 | 603 |
| 596 } // namespace blink | 604 } // namespace blink |
| 597 | 605 |
| 598 #endif // WebLocalFrame_h | 606 #endif // WebLocalFrame_h |
| OLD | NEW |