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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/common/serialized_origin.h"
6
7 #include <string>
8
9 #include "third_party/WebKit/public/platform/WebString.h"
10
11 namespace content {
12
13 SerializedOrigin::SerializedOrigin() {}
14
15 SerializedOrigin::SerializedOrigin(const std::string& origin)
16 : string(origin) {}
17
18 SerializedOrigin::SerializedOrigin(const blink::WebString& origin)
19 : string(origin.utf8()) {}
20
21 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698