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

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: more clean ups 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..957053222c132dcaf5cab415cc4809c7ec51f9cb 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_url_with_base_url_request(bool value) {
Charlie Reis 2015/11/20 21:30:12 nit: s/data_url/data/ (Since the API is LoadDataW
boliu 2015/11/23 22:32:25 Done.
+ was_load_data_url_with_base_url_request_ = value;
+ }
+ bool was_load_data_url_with_base_url_request() const {
Charlie Reis 2015/11/20 21:30:12 Same.
boliu 2015/11/23 22:32:25 Done.
+ return was_load_data_url_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_url_with_base_url_request_;
Charlie Reis 2015/11/20 21:30:12 Same. Also, these seem like they belong on Naviga
boliu 2015/11/23 22:32:25 Did not make this change. As noted, this breaks in
+ GURL data_url_;
LoadType load_type_;

Powered by Google App Engine
This is Rietveld 408576698