Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: content/public/renderer/document_state.h

Issue 1304373007: Browser test for LoadDataWithBaseURL reload (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reverts Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698