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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h

Issue 2714813003: Add an identity component for unique/opaque url::Origins.
Patch Set: Switch to base::UnguessableToken, add to SecurityOrigin. No conversions yet. Created 3 years, 10 months 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: third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
index a82e2807e58db31593351b1397b1a46beb9a8221..13d1d101b1fb1804893abdb29111d883d5519c54 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityOrigin.h
@@ -29,13 +29,14 @@
#ifndef SecurityOrigin_h
#define SecurityOrigin_h
+#include <memory>
#include "base/gtest_prod_util.h"
+#include "base/unguessable_token.h"
#include "platform/PlatformExport.h"
#include "platform/weborigin/Suborigin.h"
#include "wtf/Noncopyable.h"
#include "wtf/ThreadSafeRefCounted.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -301,6 +302,7 @@ class PLATFORM_EXPORT SecurityOrigin : public RefCounted<SecurityOrigin> {
String m_host;
String m_domain;
Suborigin m_suborigin;
+ base::UnguessableToken m_uniqueID;
unsigned short m_port;
unsigned short m_effectivePort;
bool m_isUnique;
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/DEPS ('k') | third_party/WebKit/Source/platform/weborigin/SecurityOrigin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698