| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Motorola Mobility Inc. | 3 * Copyright (C) 2012 Motorola Mobility Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 static PassRefPtr<DOMURL> create(const String& url, PassRefPtr<DOMURL> base,
ExceptionState& exceptionState) | 56 static PassRefPtr<DOMURL> create(const String& url, PassRefPtr<DOMURL> base,
ExceptionState& exceptionState) |
| 57 { | 57 { |
| 58 ASSERT(base); | 58 ASSERT(base); |
| 59 return adoptRef(new DOMURL(url, base->m_url, exceptionState)); | 59 return adoptRef(new DOMURL(url, base->m_url, exceptionState)); |
| 60 } | 60 } |
| 61 | 61 |
| 62 static String createObjectURL(ExecutionContext*, Blob*); | 62 static String createObjectURL(ExecutionContext*, Blob*); |
| 63 static void revokeObjectURL(ExecutionContext*, const String&); | 63 static void revokeObjectURL(ExecutionContext*, const String&); |
| 64 | 64 |
| 65 static String createPublicURL(ExecutionContext*, URLRegistrable*); | 65 static String createPublicURL(ExecutionContext*, URLRegistrable*, const Stri
ng& uuid = String()); |
| 66 | 66 |
| 67 virtual KURL url() const OVERRIDE { return m_url; } | 67 virtual KURL url() const OVERRIDE { return m_url; } |
| 68 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; } | 68 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; } |
| 69 | 69 |
| 70 virtual String input() const OVERRIDE { return m_input; } | 70 virtual String input() const OVERRIDE { return m_input; } |
| 71 virtual void setInput(const String&) OVERRIDE; | 71 virtual void setInput(const String&) OVERRIDE; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 DOMURL(const String& url, const KURL& base, ExceptionState&); | 74 DOMURL(const String& url, const KURL& base, ExceptionState&); |
| 75 | 75 |
| 76 KURL m_url; | 76 KURL m_url; |
| 77 String m_input; | 77 String m_input; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace WebCore | 80 } // namespace WebCore |
| 81 | 81 |
| 82 #endif // DOMURL_h | 82 #endif // DOMURL_h |
| OLD | NEW |