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

Unified Diff: public/platform/WebSerializedOrigin.h

Issue 1231643010: Remove 'blink::WebSerializedOrigin' (6/6) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@webnotificationmanager
Patch Set: Rebase. Created 5 years, 5 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
« no previous file with comments | « public/BUILD.gn ('k') | public/platform/WebSocketHandle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebSerializedOrigin.h
diff --git a/public/platform/WebSerializedOrigin.h b/public/platform/WebSerializedOrigin.h
deleted file mode 100644
index aa8f9d5be9a51461de87522e8a6b70dbd7565329..0000000000000000000000000000000000000000
--- a/public/platform/WebSerializedOrigin.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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 WebSerializedOrigin_h
-#define WebSerializedOrigin_h
-
-#include "WebString.h"
-
-#if !INSIDE_BLINK
-#include <url/deprecated_serialized_origin.h>
-#endif
-
-namespace blink {
-
-class SecurityOrigin;
-class WebSecurityOrigin;
-
-// WebSerializedOrigin represents a serialized Web Origin specified in RFC6454.
-class WebSerializedOrigin {
-public:
- WebSerializedOrigin() : m_string("null") { }
- BLINK_PLATFORM_EXPORT WebSerializedOrigin(const WebSecurityOrigin&);
-
-#if INSIDE_BLINK
- BLINK_PLATFORM_EXPORT WebSerializedOrigin(const SecurityOrigin&);
-#else
- WebSerializedOrigin(const url::DeprecatedSerializedOrigin& origin) : m_string(WebString::fromUTF8(origin.string())) { }
- operator url::DeprecatedSerializedOrigin() const { return url::DeprecatedSerializedOrigin(m_string.utf8()); }
-#endif
-
- const WebString& string() const
- {
- return m_string;
- }
-
-private:
- const WebString m_string;
-};
-
-} // namespace blink
-
-#endif // #ifndef SerializedOrigin_h
« no previous file with comments | « public/BUILD.gn ('k') | public/platform/WebSocketHandle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698