Chromium Code Reviews| Index: content/common/serialized_origin.h |
| diff --git a/content/common/serialized_origin.h b/content/common/serialized_origin.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9f189e437c81cc26e9184e229541ba5e5694a49d |
| --- /dev/null |
| +++ b/content/common/serialized_origin.h |
| @@ -0,0 +1,26 @@ |
| +// 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 CONTENT_COMMON_SERIALIZED_ORIGIN_H_ |
| +#define CONTENT_COMMON_SERIALIZED_ORIGIN_H_ |
| + |
| +#include <string> |
| + |
| +namespace blink { |
| +class WebString; |
| +} // namespace blink |
| + |
| +namespace content { |
| + |
|
Tom Sepez
2014/02/24 18:30:52
nit: possibly a comment that explains that this re
yhirano
2014/03/03 15:41:54
Done.
|
| +struct SerializedOrigin { |
| + SerializedOrigin(); |
| + explicit SerializedOrigin(const std::string& origin); |
| + explicit SerializedOrigin(const blink::WebString& origin); |
|
abarth-chromium
2014/02/24 06:17:06
I probably would have taken a WebSecurityOrigin di
yhirano
2014/03/03 15:41:54
I will add a type conversion operator to blink::We
|
| + |
| + std::string string; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_SERIALIZED_ORIGIN_H_ |