| 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 26 matching lines...) Expand all Loading... |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class Blob; | 41 class Blob; |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 class ExecutionContext; | 43 class ExecutionContext; |
| 44 class URLRegistrable; | 44 class URLRegistrable; |
| 45 | 45 |
| 46 class DOMURL FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMURL>, p
ublic ScriptWrappable, public DOMURLUtils { | 46 class DOMURL FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMURL>, p
ublic ScriptWrappable, public DOMURLUtils { |
| 47 DECLARE_GC_INFO; | |
| 48 public: | 47 public: |
| 49 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, ExceptionSta
te& exceptionState) | 48 static PassRefPtrWillBeRawPtr<DOMURL> create(const String& url, ExceptionSta
te& exceptionState) |
| 50 { | 49 { |
| 51 return adoptRefWillBeNoop(new DOMURL(url, blankURL(), exceptionState)); | 50 return adoptRefWillBeNoop(new DOMURL(url, blankURL(), exceptionState)); |
| 52 } | 51 } |
| 53 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) |
| 54 { | 53 { |
| 55 return adoptRefWillBeNoop(new DOMURL(url, KURL(KURL(), base), exceptionS
tate)); | 54 return adoptRefWillBeNoop(new DOMURL(url, KURL(KURL(), base), exceptionS
tate)); |
| 56 } | 55 } |
| 57 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) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 76 private: | 75 private: |
| 77 DOMURL(const String& url, const KURL& base, ExceptionState&); | 76 DOMURL(const String& url, const KURL& base, ExceptionState&); |
| 78 | 77 |
| 79 KURL m_url; | 78 KURL m_url; |
| 80 String m_input; | 79 String m_input; |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 } // namespace WebCore | 82 } // namespace WebCore |
| 84 | 83 |
| 85 #endif // DOMURL_h | 84 #endif // DOMURL_h |
| OLD | NEW |