| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SecurityOriginStructTraits_h | 5 #ifndef SecurityOriginStructTraits_h |
| 6 #define SecurityOriginStructTraits_h | 6 #define SecurityOriginStructTraits_h |
| 7 | 7 |
| 8 #include "platform/weborigin/SecurityOrigin.h" | 8 #include "platform/weborigin/SecurityOrigin.h" |
| 9 #include "platform/wtf/text/WTFString.h" | 9 #include "platform/wtf/text/WTFString.h" |
| 10 #include "url/mojo/origin.mojom-blink.h" | 10 #include "url/mojo/origin.mojom-blink.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 // If a unique origin was created, but the unique flag wasn't set, then | 49 // If a unique origin was created, but the unique flag wasn't set, then |
| 50 // the values provided to 'create' were invalid. | 50 // the values provided to 'create' were invalid. |
| 51 if (!data.unique() && (*out)->IsUnique()) | 51 if (!data.unique() && (*out)->IsUnique()) |
| 52 return false; | 52 return false; |
| 53 | 53 |
| 54 return true; | 54 return true; |
| 55 } | 55 } |
| 56 }; | 56 }; |
| 57 } | 57 } // namespace mojo |
| 58 | 58 |
| 59 #endif // SecurityOriginStructTraits_h | 59 #endif // SecurityOriginStructTraits_h |
| OLD | NEW |