Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: Source/core/html/DOMURLUtils.h

Issue 24066010: Implement URLUtils and URL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates based on code review comments Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/DOMURL.cpp ('k') | Source/core/html/DOMURLUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/html/DOMURL.cpp ('k') | Source/core/html/DOMURLUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698