| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Google Inc. All Rights Reserved. |
| 3 * (C) 2008 Apple Inc. | 3 * (C) 2008 Apple 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 * 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 29 matching lines...) Expand all Loading... |
| 40 #include "modules/storage/StorageEvent.h" | 40 #include "modules/storage/StorageEvent.h" |
| 41 #include "modules/storage/StorageNamespace.h" | 41 #include "modules/storage/StorageNamespace.h" |
| 42 #include "modules/storage/StorageNamespaceController.h" | 42 #include "modules/storage/StorageNamespaceController.h" |
| 43 #include "platform/weborigin/SecurityOrigin.h" | 43 #include "platform/weborigin/SecurityOrigin.h" |
| 44 #include "public/platform/WebStorageArea.h" | 44 #include "public/platform/WebStorageArea.h" |
| 45 #include "public/platform/WebString.h" | 45 #include "public/platform/WebString.h" |
| 46 #include "public/platform/WebURL.h" | 46 #include "public/platform/WebURL.h" |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 PassOwnPtrWillBeRawPtr<StorageArea> StorageArea::create(PassOwnPtr<WebStorageAre
a> storageArea, StorageType storageType) | 50 StorageArea* StorageArea::create(PassOwnPtr<WebStorageArea> storageArea, Storage
Type storageType) |
| 51 { | 51 { |
| 52 return adoptPtrWillBeNoop(new StorageArea(storageArea, storageType)); | 52 return new StorageArea(storageArea, storageType); |
| 53 } | 53 } |
| 54 | 54 |
| 55 StorageArea::StorageArea(PassOwnPtr<WebStorageArea> storageArea, StorageType sto
rageType) | 55 StorageArea::StorageArea(PassOwnPtr<WebStorageArea> storageArea, StorageType sto
rageType) |
| 56 : LocalFrameLifecycleObserver(nullptr) | 56 : LocalFrameLifecycleObserver(nullptr) |
| 57 , m_storageArea(storageArea) | 57 , m_storageArea(storageArea) |
| 58 , m_storageType(storageType) | 58 , m_storageType(storageType) |
| 59 , m_canAccessStorageCachedResult(false) | 59 , m_canAccessStorageCachedResult(false) |
| 60 { | 60 { |
| 61 } | 61 } |
| 62 | 62 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool StorageArea::isEventSource(Storage* storage, WebStorageArea* sourceAreaInst
ance) | 216 bool StorageArea::isEventSource(Storage* storage, WebStorageArea* sourceAreaInst
ance) |
| 217 { | 217 { |
| 218 ASSERT(storage); | 218 ASSERT(storage); |
| 219 StorageArea* area = storage->area(); | 219 StorageArea* area = storage->area(); |
| 220 return area->m_storageArea == sourceAreaInstance; | 220 return area->m_storageArea == sourceAreaInstance; |
| 221 } | 221 } |
| 222 | 222 |
| 223 } // namespace blink | 223 } // namespace blink |
| OLD | NEW |