| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "modules/storage/StorageEvent.h" | 26 #include "modules/storage/StorageEvent.h" |
| 27 | 27 |
| 28 #include "modules/EventModules.h" | 28 #include "modules/EventModules.h" |
| 29 #include "modules/storage/Storage.h" | 29 #include "modules/storage/Storage.h" |
| 30 #include "modules/storage/StorageEventInit.h" | 30 #include "modules/storage/StorageEventInit.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 RawPtr<StorageEvent> StorageEvent::create() | 34 StorageEvent* StorageEvent::create() |
| 35 { | 35 { |
| 36 return new StorageEvent; | 36 return new StorageEvent; |
| 37 } | 37 } |
| 38 | 38 |
| 39 StorageEvent::StorageEvent() | 39 StorageEvent::StorageEvent() |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 StorageEvent::~StorageEvent() | 43 StorageEvent::~StorageEvent() |
| 44 { | 44 { |
| 45 } | 45 } |
| 46 | 46 |
| 47 RawPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const String
& key, const String& oldValue, const String& newValue, const String& url, Storag
e* storageArea) | 47 StorageEvent* StorageEvent::create(const AtomicString& type, const String& key,
const String& oldValue, const String& newValue, const String& url, Storage* stor
ageArea) |
| 48 { | 48 { |
| 49 return new StorageEvent(type, key, oldValue, newValue, url, storageArea); | 49 return new StorageEvent(type, key, oldValue, newValue, url, storageArea); |
| 50 } | 50 } |
| 51 | 51 |
| 52 RawPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const Storag
eEventInit& initializer) | 52 StorageEvent* StorageEvent::create(const AtomicString& type, const StorageEventI
nit& initializer) |
| 53 { | 53 { |
| 54 return new StorageEvent(type, initializer); | 54 return new StorageEvent(type, initializer); |
| 55 } | 55 } |
| 56 | 56 |
| 57 StorageEvent::StorageEvent(const AtomicString& type, const String& key, const St
ring& oldValue, const String& newValue, const String& url, Storage* storageArea) | 57 StorageEvent::StorageEvent(const AtomicString& type, const String& key, const St
ring& oldValue, const String& newValue, const String& url, Storage* storageArea) |
| 58 : Event(type, false, false) | 58 : Event(type, false, false) |
| 59 , m_key(key) | 59 , m_key(key) |
| 60 , m_oldValue(oldValue) | 60 , m_oldValue(oldValue) |
| 61 , m_newValue(newValue) | 61 , m_newValue(newValue) |
| 62 , m_url(url) | 62 , m_url(url) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 return EventNames::StorageEvent; | 98 return EventNames::StorageEvent; |
| 99 } | 99 } |
| 100 | 100 |
| 101 DEFINE_TRACE(StorageEvent) | 101 DEFINE_TRACE(StorageEvent) |
| 102 { | 102 { |
| 103 visitor->trace(m_storageArea); | 103 visitor->trace(m_storageArea); |
| 104 Event::trace(visitor); | 104 Event::trace(visitor); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace blink | 107 } // namespace blink |
| OLD | NEW |