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

Unified Diff: content/child/request_extra_data.h

Issue 2557673006: Move Origin::GetURL() out of resource request critical path (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | content/child/resource_dispatcher.h » ('j') | content/child/site_isolation_stats_gatherer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/request_extra_data.h
diff --git a/content/child/request_extra_data.h b/content/child/request_extra_data.h
index 817457cf6599a3ee2c09701b380f1819d429def5..553469e2745076a26ef6608bcc0550ad7d8a4648 100644
--- a/content/child/request_extra_data.h
+++ b/content/child/request_extra_data.h
@@ -16,6 +16,7 @@
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "ui/base/page_transition_types.h"
+#include "url/origin.h"
namespace content {
@@ -44,8 +45,8 @@ class CONTENT_EXPORT RequestExtraData
void set_is_main_frame(bool is_main_frame) {
is_main_frame_ = is_main_frame;
}
- GURL frame_origin() const { return frame_origin_; }
- void set_frame_origin(const GURL& frame_origin) {
+ url::Origin frame_origin() const { return frame_origin_; }
+ void set_frame_origin(const url::Origin& frame_origin) {
frame_origin_ = frame_origin;
}
bool parent_is_main_frame() const { return parent_is_main_frame_; }
@@ -154,7 +155,7 @@ class CONTENT_EXPORT RequestExtraData
blink::WebPageVisibilityState visibility_state_;
int render_frame_id_;
bool is_main_frame_;
- GURL frame_origin_;
+ url::Origin frame_origin_;
bool parent_is_main_frame_;
int parent_render_frame_id_;
bool allow_download_;
« no previous file with comments | « no previous file | content/child/resource_dispatcher.h » ('j') | content/child/site_isolation_stats_gatherer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698