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

Unified Diff: url/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: url/serialized_origin.cc
diff --git a/url/serialized_origin.cc b/url/serialized_origin.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7f57a4edbc3644e7c605bf5c532b88656cc02140
--- /dev/null
+++ b/url/serialized_origin.cc
@@ -0,0 +1,19 @@
+// 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 "url/serialized_origin.h"
+
+#include <ostream>
+#include <string>
brettw 2014/03/10 20:59:04 You don't need this since the header file uses it.
yhirano 2014/03/12 02:27:05 Done.
+
+SerializedOrigin::SerializedOrigin() {}
+
+SerializedOrigin::SerializedOrigin(const std::string& origin)
+ : string_(origin) {}
brettw 2014/03/10 20:59:04 It seems like there is an expected format of the o
yhirano 2014/03/12 02:27:05 Done.
+
+std::ostream& operator<<(std::ostream& out,
+ const SerializedOrigin& origin) {
+ return out << origin.string();
+}
+
« url/serialized_origin.h ('K') | « url/serialized_origin.h ('k') | url/url_srcs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698