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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 { | 49 { |
50 return new DOMURL(url, blankURL(), exceptionState); | 50 return new DOMURL(url, blankURL(), exceptionState); |
51 } | 51 } |
52 | 52 |
53 static DOMURL* create(const String& url, const String& base, ExceptionState&
exceptionState) | 53 static DOMURL* create(const String& url, const String& base, ExceptionState&
exceptionState) |
54 { | 54 { |
55 return new DOMURL(url, KURL(KURL(), base), exceptionState); | 55 return new DOMURL(url, KURL(KURL(), base), exceptionState); |
56 } | 56 } |
57 ~DOMURL(); | 57 ~DOMURL(); |
58 | 58 |
59 static String createObjectURL(ExecutionContext*, Blob*, ExceptionState&); | |
60 static void revokeObjectURL(ExecutionContext*, const String&); | |
61 | |
62 CORE_EXPORT static String createPublicURL(ExecutionContext*, URLRegistrable*
, const String& uuid = String()); | 59 CORE_EXPORT static String createPublicURL(ExecutionContext*, URLRegistrable*
, const String& uuid = String()); |
63 static void revokeObjectUUID(ExecutionContext*, const String&); | 60 static void revokeObjectUUID(ExecutionContext*, const String&); |
64 | 61 |
65 KURL url() const override { return m_url; } | 62 KURL url() const override { return m_url; } |
66 void setURL(const KURL& url) override { m_url = url; } | 63 void setURL(const KURL& url) override { m_url = url; } |
67 | 64 |
68 String input() const override { return m_input; } | 65 String input() const override { return m_input; } |
69 void setInput(const String&) override; | 66 void setInput(const String&) override; |
70 | 67 |
71 void setSearch(const String&) override; | 68 void setSearch(const String&) override; |
(...skipping 10 matching lines...) Expand all Loading... |
82 void updateSearchParams(const String&); | 79 void updateSearchParams(const String&); |
83 | 80 |
84 KURL m_url; | 81 KURL m_url; |
85 String m_input; | 82 String m_input; |
86 WeakMember<URLSearchParams> m_searchParams; | 83 WeakMember<URLSearchParams> m_searchParams; |
87 }; | 84 }; |
88 | 85 |
89 } // namespace blink | 86 } // namespace blink |
90 | 87 |
91 #endif // DOMURL_h | 88 #endif // DOMURL_h |
OLD | NEW |