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

Unified Diff: content/common/serialized_origin.h

Issue 170843007: Introduce url::Origin to represent Web Origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/common/serialized_origin.h
diff --git a/content/common/serialized_origin.h b/content/common/serialized_origin.h
new file mode 100644
index 0000000000000000000000000000000000000000..9f189e437c81cc26e9184e229541ba5e5694a49d
--- /dev/null
+++ b/content/common/serialized_origin.h
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_SERIALIZED_ORIGIN_H_
+#define CONTENT_COMMON_SERIALIZED_ORIGIN_H_
+
+#include <string>
+
+namespace blink {
+class WebString;
+} // namespace blink
+
+namespace content {
+
Tom Sepez 2014/02/24 18:30:52 nit: possibly a comment that explains that this re
yhirano 2014/03/03 15:41:54 Done.
+struct SerializedOrigin {
+ SerializedOrigin();
+ explicit SerializedOrigin(const std::string& origin);
+ explicit SerializedOrigin(const blink::WebString& origin);
abarth-chromium 2014/02/24 06:17:06 I probably would have taken a WebSecurityOrigin di
yhirano 2014/03/03 15:41:54 I will add a type conversion operator to blink::We
+
+ std::string string;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SERIALIZED_ORIGIN_H_

Powered by Google App Engine
This is Rietveld 408576698