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

Unified Diff: content/common/serialized_origin.cc

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.cc
diff --git a/content/common/serialized_origin.cc b/content/common/serialized_origin.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9ba190e7ee249ec68b9b7d24977e9dc7dae630a8
--- /dev/null
+++ b/content/common/serialized_origin.cc
@@ -0,0 +1,21 @@
+// 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.
+
+#include "content/common/serialized_origin.h"
+
+#include <string>
+
+#include "third_party/WebKit/public/platform/WebString.h"
+
+namespace content {
+
+SerializedOrigin::SerializedOrigin() {}
+
+SerializedOrigin::SerializedOrigin(const std::string& origin)
+ : string(origin) {}
+
+SerializedOrigin::SerializedOrigin(const blink::WebString& origin)
+ : string(origin.utf8()) {}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698