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

Side by Side Diff: Source/modules/storage/DOMWindowStorageController.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/storage/DOMWindowStorageController.h" 6 #include "modules/storage/DOMWindowStorageController.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/events/Event.h" 9 #include "core/events/Event.h"
10 #include "core/frame/LocalDOMWindow.h" 10 #include "core/frame/LocalDOMWindow.h"
11 #include "core/page/Page.h" 11 #include "core/page/Page.h"
12 #include "modules/storage/DOMWindowStorage.h" 12 #include "modules/storage/DOMWindowStorage.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 DOMWindowStorageController::DOMWindowStorageController(Document& document) 16 DOMWindowStorageController::DOMWindowStorageController(Document& document)
17 : DOMWindowLifecycleObserver(document.domWindow()) 17 : DOMWindowLifecycleObserver(document.domWindow())
18 , m_document(document) 18 , m_document(document)
19 { 19 {
20 } 20 }
21 21
22 DOMWindowStorageController::~DOMWindowStorageController() 22 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowStorageController);
23 {
24 }
25 23
26 DEFINE_TRACE(DOMWindowStorageController) 24 DEFINE_TRACE(DOMWindowStorageController)
27 { 25 {
28 visitor->trace(m_document); 26 visitor->trace(m_document);
29 WillBeHeapSupplement<Document>::trace(visitor); 27 WillBeHeapSupplement<Document>::trace(visitor);
30 DOMWindowLifecycleObserver::trace(visitor); 28 DOMWindowLifecycleObserver::trace(visitor);
31 } 29 }
32 30
33 // static 31 // static
34 const char* DOMWindowStorageController::supplementName() 32 const char* DOMWindowStorageController::supplementName()
(...skipping 18 matching lines...) Expand all
53 // Creating these blink::Storage objects informs the system that we'd li ke to receive 51 // Creating these blink::Storage objects informs the system that we'd li ke to receive
54 // notifications about storage events that might be triggered in other p rocesses. Rather 52 // notifications about storage events that might be triggered in other p rocesses. Rather
55 // than subscribe to these notifications explicitly, we subscribe to the m implicitly to 53 // than subscribe to these notifications explicitly, we subscribe to the m implicitly to
56 // simplify the work done by the system. 54 // simplify the work done by the system.
57 DOMWindowStorage::from(*window).localStorage(IGNORE_EXCEPTION); 55 DOMWindowStorage::from(*window).localStorage(IGNORE_EXCEPTION);
58 DOMWindowStorage::from(*window).sessionStorage(IGNORE_EXCEPTION); 56 DOMWindowStorage::from(*window).sessionStorage(IGNORE_EXCEPTION);
59 } 57 }
60 } 58 }
61 59
62 } // namespace blink 60 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698