Chromium Code Reviews| Index: content/public/renderer/document_state.h |
| diff --git a/content/public/renderer/document_state.h b/content/public/renderer/document_state.h |
| index b24c9f17c153631678febff1b9209bbfb7f865f7..f6c8ecc905b0a5cddcf54586cee0c3c4e81f24e1 100644 |
| --- a/content/public/renderer/document_state.h |
| +++ b/content/public/renderer/document_state.h |
| @@ -14,6 +14,7 @@ |
| #include "content/common/content_export.h" |
| #include "net/http/http_response_info.h" |
| #include "third_party/WebKit/public/web/WebDataSource.h" |
| +#include "url/gurl.h" |
| namespace content { |
| @@ -181,6 +182,19 @@ class CONTENT_EXPORT DocumentState |
| } |
| bool was_after_preconnect_request() { return was_after_preconnect_request_; } |
| + void set_was_load_data_with_base_url_request(bool value) { |
|
Charlie Reis
2015/11/24 00:22:59
nit: Comment on this block mentioning LoadDataWith
boliu
2015/11/24 19:03:25
Done.
|
| + was_load_data_with_base_url_request_ = value; |
| + } |
| + bool was_load_data_with_base_url_request() const { |
| + return was_load_data_with_base_url_request_; |
| + } |
| + const GURL& data_url() const { |
| + return data_url_; |
| + } |
| + void set_data_url(const GURL& data_url) { |
| + data_url_ = data_url; |
| + } |
| + |
| // Record the nature of this load, for use when histogramming page load times. |
| LoadType load_type() const { return load_type_; } |
| void set_load_type(LoadType load_type) { load_type_ = load_type; } |
| @@ -215,6 +229,8 @@ class CONTENT_EXPORT DocumentState |
| bool was_prefetcher_; |
| bool was_referred_by_prefetcher_; |
| bool was_after_preconnect_request_; |
| + bool was_load_data_with_base_url_request_; |
|
Charlie Reis
2015/11/24 00:22:59
nit: Place these two in their own block with a com
boliu
2015/11/24 19:03:25
Done.
|
| + GURL data_url_; |
| LoadType load_type_; |