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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 new_value, page_url, storage)); | 238 new_value, page_url, storage)); |
239 } | 239 } |
240 if (InspectorDOMStorageAgent* agent = | 240 if (InspectorDOMStorageAgent* agent = |
241 StorageNamespaceController::From(page)->InspectorAgent()) | 241 StorageNamespaceController::From(page)->InspectorAgent()) |
242 agent->DidDispatchDOMStorageEvent(key, old_value, new_value, | 242 agent->DidDispatchDOMStorageEvent(key, old_value, new_value, |
243 kSessionStorage, security_origin); | 243 kSessionStorage, security_origin); |
244 } | 244 } |
245 | 245 |
246 bool StorageArea::IsEventSource(Storage* storage, | 246 bool StorageArea::IsEventSource(Storage* storage, |
247 WebStorageArea* source_area_instance) { | 247 WebStorageArea* source_area_instance) { |
248 ASSERT(storage); | 248 DCHECK(storage); |
249 StorageArea* area = storage->Area(); | 249 StorageArea* area = storage->Area(); |
250 return area->storage_area_.get() == source_area_instance; | 250 return area->storage_area_.get() == source_area_instance; |
251 } | 251 } |
252 | 252 |
253 } // namespace blink | 253 } // namespace blink |
OLD | NEW |