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

Unified Diff: Source/platform/exported/WebSerializedOrigin.cpp

Issue 201593002: Add WebSerializedOrigin to represent a serialized Web Origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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: Source/platform/exported/WebSerializedOrigin.cpp
diff --git a/LICENSE b/Source/platform/exported/WebSerializedOrigin.cpp
similarity index 85%
copy from LICENSE
copy to Source/platform/exported/WebSerializedOrigin.cpp
index 70bcb8ad118978579fa055f7ecc99604930900ce..a06f59e64fcfff3223eb82aec36e0fca4e2cadb9 100644
--- a/LICENSE
+++ b/Source/platform/exported/WebSerializedOrigin.cpp
@@ -28,3 +28,17 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
tyoshino (SeeGerritForStatus) 2014/03/19 05:43:12 we can use short header style now? http://dev.chr
yhirano 2014/03/19 06:36:16 Thanks, done.
+
+#include "config.h"
+#include "public/platform/WebSerializedOrigin.h"
+
+#include "platform/weborigin/SecurityOrigin.h"
+
+namespace blink {
+
+WebSerializedOrigin::WebSerializedOrigin(const WebCore::SecurityOrigin& origin)
+ : m_string(origin.toString())
+{
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698