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 16 matching lines...) Expand all Loading... |
27 #ifndef DOMURLUtils_h | 27 #ifndef DOMURLUtils_h |
28 #define DOMURLUtils_h | 28 #define DOMURLUtils_h |
29 | 29 |
30 #include "core/dom/DOMURLUtilsReadOnly.h" | 30 #include "core/dom/DOMURLUtilsReadOnly.h" |
31 #include "wtf/Forward.h" | 31 #include "wtf/Forward.h" |
32 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class KURL; | 36 class KURL; |
| 37 class URLQuery; |
37 | 38 |
38 class DOMURLUtils : public DOMURLUtilsReadOnly { | 39 class DOMURLUtils : public DOMURLUtilsReadOnly { |
39 public: | 40 public: |
40 virtual void setURL(const KURL&) = 0; | 41 virtual void setURL(const KURL&) = 0; |
41 virtual void setInput(const String&) = 0; | 42 virtual void setInput(const String&) = 0; |
42 | 43 |
43 static void setHref(DOMURLUtils*, const String&); | 44 static void setHref(DOMURLUtils*, const String&); |
44 | 45 |
45 static void setProtocol(DOMURLUtils*, const String&); | 46 static void setProtocol(DOMURLUtils*, const String&); |
46 static void setUsername(DOMURLUtils*, const String&); | 47 static void setUsername(DOMURLUtils*, const String&); |
47 static void setPassword(DOMURLUtils*, const String&); | 48 static void setPassword(DOMURLUtils*, const String&); |
48 static void setHost(DOMURLUtils*, const String&); | 49 static void setHost(DOMURLUtils*, const String&); |
49 static void setHostname(DOMURLUtils*, const String&); | 50 static void setHostname(DOMURLUtils*, const String&); |
50 static void setPort(DOMURLUtils*, const String&); | 51 static void setPort(DOMURLUtils*, const String&); |
51 static void setPathname(DOMURLUtils*, const String&); | 52 static void setPathname(DOMURLUtils*, const String&); |
52 static void setSearch(DOMURLUtils*, const String&); | 53 static void setSearch(DOMURLUtils*, const String&); |
53 static void setHash(DOMURLUtils*, const String&); | 54 static void setHash(DOMURLUtils*, const String&); |
| 55 |
| 56 static URLQuery* query(DOMURLUtils*); |
54 }; | 57 }; |
55 | 58 |
56 } // namespace WebCore | 59 } // namespace WebCore |
57 | 60 |
58 #endif // DOMURLUtils_h | 61 #endif // DOMURLUtils_h |
OLD | NEW |