Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: Source/modules/storage/StorageArea.cpp

Issue 1055133003: Oilpan: have Storage objects reside on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: trivial cl footprint reduction Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698