| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 WebSecurityOrigin() : m_private(0) { } | 51 WebSecurityOrigin() : m_private(0) { } |
| 52 WebSecurityOrigin(const WebSecurityOrigin& s) : m_private(0) { assign(s); } | 52 WebSecurityOrigin(const WebSecurityOrigin& s) : m_private(0) { assign(s); } |
| 53 WebSecurityOrigin& operator=(const WebSecurityOrigin& s) | 53 WebSecurityOrigin& operator=(const WebSecurityOrigin& s) |
| 54 { | 54 { |
| 55 assign(s); | 55 assign(s); |
| 56 return *this; | 56 return *this; |
| 57 } | 57 } |
| 58 | 58 |
| 59 BLINK_EXPORT static WebSecurityOrigin createFromDatabaseIdentifier(const Web
String& databaseIdentifier); | 59 BLINK_EXPORT static WebSecurityOrigin createFromDatabaseIdentifier(const Web
String& databaseIdentifier); |
| 60 BLINK_EXPORT static WebSecurityOrigin createFromString(const WebString&); | 60 BLINK_EXPORT static WebSecurityOrigin createFromString(const WebString&); |
| 61 BLINK_EXPORT static WebSecurityOrigin createUnique(); |
| 61 BLINK_EXPORT static WebSecurityOrigin create(const WebURL&); | 62 BLINK_EXPORT static WebSecurityOrigin create(const WebURL&); |
| 62 | 63 |
| 63 BLINK_EXPORT void reset(); | 64 BLINK_EXPORT void reset(); |
| 64 BLINK_EXPORT void assign(const WebSecurityOrigin&); | 65 BLINK_EXPORT void assign(const WebSecurityOrigin&); |
| 65 | 66 |
| 66 bool isNull() const { return !m_private; } | 67 bool isNull() const { return !m_private; } |
| 67 | 68 |
| 68 BLINK_EXPORT WebString protocol() const; | 69 BLINK_EXPORT WebString protocol() const; |
| 69 BLINK_EXPORT WebString host() const; | 70 BLINK_EXPORT WebString host() const; |
| 70 BLINK_EXPORT unsigned short port() const; | 71 BLINK_EXPORT unsigned short port() const; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 #endif | 115 #endif |
| 115 | 116 |
| 116 private: | 117 private: |
| 117 void assign(WebSecurityOriginPrivate*); | 118 void assign(WebSecurityOriginPrivate*); |
| 118 WebSecurityOriginPrivate* m_private; | 119 WebSecurityOriginPrivate* m_private; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace blink | 122 } // namespace blink |
| 122 | 123 |
| 123 #endif | 124 #endif |
| OLD | NEW |