| Index: Source/core/html/DOMURLUtils.h
|
| diff --git a/Source/core/html/DOMURL.h b/Source/core/html/DOMURLUtils.h
|
| similarity index 52%
|
| copy from Source/core/html/DOMURL.h
|
| copy to Source/core/html/DOMURLUtils.h
|
| index a3784de69e5db10db6cd870aecb8ded94829b105..7742306752d38cdd368d78ccf9f6712b07f04768 100644
|
| --- a/Source/core/html/DOMURL.h
|
| +++ b/Source/core/html/DOMURLUtils.h
|
| @@ -24,30 +24,59 @@
|
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef DOMURL_h
|
| -#define DOMURL_h
|
| +#ifndef DOMURLUtils_h
|
| +#define DOMURLUtils_h
|
|
|
| #include "wtf/Forward.h"
|
| -#include "wtf/PassRefPtr.h"
|
| -#include "wtf/RefCounted.h"
|
| +#include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
|
|
| -class Blob;
|
| -class ScriptExecutionContext;
|
| -class URLRegistrable;
|
| -
|
| -class DOMURL : public RefCounted<DOMURL> {
|
| +class KURL;
|
|
|
| +class DOMURLUtils {
|
| public:
|
| - static PassRefPtr<DOMURL> create() { return adoptRef(new DOMURL); }
|
| + virtual KURL url() const = 0;
|
| + virtual void setURL(const KURL&) = 0;
|
| +
|
| + virtual String input() const = 0;
|
| + virtual void setInput(const String&) = 0;
|
| +
|
| + static String href(DOMURLUtils*);
|
| + static void setHref(DOMURLUtils*, const String&);
|
| +
|
| + static String toString(DOMURLUtils*);
|
| +
|
| + static String origin(DOMURLUtils*);
|
| +
|
| + static String protocol(DOMURLUtils*);
|
| + static void setProtocol(DOMURLUtils*, const String&);
|
| +
|
| + static String username(DOMURLUtils*);
|
| + static void setUsername(DOMURLUtils*, const String&);
|
| +
|
| + static String password(DOMURLUtils*);
|
| + static void setPassword(DOMURLUtils*, const String&);
|
| +
|
| + static String host(DOMURLUtils*);
|
| + static void setHost(DOMURLUtils*, const String&);
|
| +
|
| + static String hostname(DOMURLUtils*);
|
| + static void setHostname(DOMURLUtils*, const String&);
|
| +
|
| + static String port(DOMURLUtils*);
|
| + static void setPort(DOMURLUtils*, const String&);
|
| +
|
| + static String pathname(DOMURLUtils*);
|
| + static void setPathname(DOMURLUtils*, const String&);
|
|
|
| - static String createObjectURL(ScriptExecutionContext*, Blob*);
|
| - static void revokeObjectURL(ScriptExecutionContext*, const String&);
|
| + static String search(DOMURLUtils*);
|
| + static void setSearch(DOMURLUtils*, const String&);
|
|
|
| - static String createPublicURL(ScriptExecutionContext*, URLRegistrable*);
|
| + static String hash(DOMURLUtils*);
|
| + static void setHash(DOMURLUtils*, const String&);
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // DOMURL_h
|
| +#endif // DOMURLUtils_h
|
|
|