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