| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class LocalDOMWindow; | 41 class LocalDOMWindow; |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 class LocalFrame; | 43 class LocalFrame; |
| 44 class KURL; | 44 class KURL; |
| 45 | 45 |
| 46 class Location FINAL : public RefCountedWillBeGarbageCollectedFinalized<Location
>, public ScriptWrappable, public DOMWindowProperty { | 46 class Location FINAL : public RefCountedWillBeGarbageCollected<Location>, public
ScriptWrappable, public DOMWindowProperty { |
| 47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Location); |
| 48 public: | 49 public: |
| 49 static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame) | 50 static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame) |
| 50 { | 51 { |
| 51 return adoptRefWillBeNoop(new Location(frame)); | 52 return adoptRefWillBeNoop(new Location(frame)); |
| 52 } | 53 } |
| 53 | 54 |
| 54 void setHref(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); | 55 void setHref(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); |
| 55 String href() const; | 56 String href() const; |
| 56 | 57 |
| 57 void assign(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, co
nst String&); | 58 void assign(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, co
nst String&); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 69 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo
w, const String&); | 70 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo
w, const String&); |
| 70 String pathname() const; | 71 String pathname() const; |
| 71 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow,
const String&); | 72 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow,
const String&); |
| 72 String search() const; | 73 String search() const; |
| 73 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); | 74 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); |
| 74 String hash() const; | 75 String hash() const; |
| 75 String origin() const; | 76 String origin() const; |
| 76 | 77 |
| 77 PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const; | 78 PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const; |
| 78 | 79 |
| 79 void trace(Visitor*) { } | 80 virtual void trace(Visitor*) OVERRIDE; |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 explicit Location(LocalFrame*); | 83 explicit Location(LocalFrame*); |
| 83 | 84 |
| 84 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo
w* enteredWindow); | 85 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo
w* enteredWindow); |
| 85 | 86 |
| 86 const KURL& url() const; | 87 const KURL& url() const; |
| 87 }; | 88 }; |
| 88 | 89 |
| 89 } // namespace blink | 90 } // namespace blink |
| 90 | 91 |
| 91 #endif // Location_h | 92 #endif // Location_h |
| OLD | NEW |