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