Index: third_party/WebKit/public/web/WebLocalFrame.h |
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h |
index e768600fd6366332fb1e07ce54872a1e17e1e57a..06118a8007c071d3c42e8f34cbaa6613fe853e9e 100644 |
--- a/third_party/WebKit/public/web/WebLocalFrame.h |
+++ b/third_party/WebKit/public/web/WebLocalFrame.h |
@@ -26,6 +26,7 @@ class InterfaceRegistry; |
class WebAutofillClient; |
class WebContentSettingsClient; |
class WebData; |
+class WebDataSource; |
class WebDevToolsAgent; |
class WebDevToolsAgentClient; |
class WebDoubleSize; |
@@ -178,6 +179,12 @@ class WebLocalFrame : public WebFrame { |
WebHistoryLoadType = kWebHistoryDifferentDocumentLoad, |
bool is_client_redirect = false) = 0; |
+ // Returns the data source that is currently loading. May be null. |
+ virtual WebDataSource* ProvisionalDataSource() const = 0; |
+ |
+ // Returns the data source that is currently loaded. |
+ virtual WebDataSource* DataSource() const = 0; |
+ |
enum FallbackContentResult { |
// An error page should be shown instead of fallback. |
NoFallbackContent, |