| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, PassRefPtrWi
llBeRawPtr<DOMURL> base, ExceptionState& exceptionState) | 57 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, PassRefPtrWi
llBeRawPtr<DOMURL> base, ExceptionState& exceptionState) |
| 58 { | 58 { |
| 59 ASSERT(base); | 59 ASSERT(base); |
| 60 return adoptRefWillBeNoop(new DOMURL(url, base->m_url, exceptionState)); | 60 return adoptRefWillBeNoop(new DOMURL(url, base->m_url, exceptionState)); |
| 61 } | 61 } |
| 62 | 62 |
| 63 static String createObjectURL(ExecutionContext*, Blob*); | 63 static String createObjectURL(ExecutionContext*, Blob*); |
| 64 static void revokeObjectURL(ExecutionContext*, const String&); | 64 static void revokeObjectURL(ExecutionContext*, const String&); |
| 65 | 65 |
| 66 static String createPublicURL(ExecutionContext*, URLRegistrable*); | 66 static String createPublicURL(ExecutionContext*, URLRegistrable*, const Stri
ng& uuid = String()); |
| 67 static void revokeObjectUUID(ExecutionContext*, const String&); |
| 67 | 68 |
| 68 virtual KURL url() const OVERRIDE { return m_url; } | 69 virtual KURL url() const OVERRIDE { return m_url; } |
| 69 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; } | 70 virtual void setURL(const KURL& url) OVERRIDE { m_url = url; } |
| 70 | 71 |
| 71 virtual String input() const OVERRIDE { return m_input; } | 72 virtual String input() const OVERRIDE { return m_input; } |
| 72 virtual void setInput(const String&) OVERRIDE; | 73 virtual void setInput(const String&) OVERRIDE; |
| 73 | 74 |
| 74 void trace(Visitor*) { } | 75 void trace(Visitor*) { } |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 DOMURL(const String& url, const KURL& base, ExceptionState&); | 78 DOMURL(const String& url, const KURL& base, ExceptionState&); |
| 78 | 79 |
| 79 KURL m_url; | 80 KURL m_url; |
| 80 String m_input; | 81 String m_input; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace WebCore | 84 } // namespace WebCore |
| 84 | 85 |
| 85 #endif // DOMURL_h | 86 #endif // DOMURL_h |
| OLD | NEW |