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

Side by Side Diff: Source/core/storage/DOMWindowStorageController.cpp

Issue 810623004: Oilpan: fix build after r187279. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: compile fix Created 6 years 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
« no previous file with comments | « Source/core/storage/DOMWindowStorageController.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "core/storage/DOMWindowStorageController.h" 6 #include "core/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 12
13 namespace blink { 13 namespace blink {
14 14
15 DOMWindowStorageController::DOMWindowStorageController(Document& document) 15 DOMWindowStorageController::DOMWindowStorageController(Document& document)
16 : DOMWindowLifecycleObserver(document.domWindow()) 16 : DOMWindowLifecycleObserver(document.domWindow())
17 , m_document(document) 17 , m_document(document)
18 { 18 {
19 } 19 }
20 20
21 DOMWindowStorageController::~DOMWindowStorageController() 21 DOMWindowStorageController::~DOMWindowStorageController()
22 { 22 {
23 } 23 }
24 24
25 void DOMWindowStorageController::trace(Visitor* visitor)
26 {
27 visitor->trace(m_document);
28 WillBeHeapSupplement<Document>::trace(visitor);
29 }
30
25 // static 31 // static
26 const char* DOMWindowStorageController::supplementName() 32 const char* DOMWindowStorageController::supplementName()
27 { 33 {
28 return "DOMWindowStorageController"; 34 return "DOMWindowStorageController";
29 } 35 }
30 36
31 // static 37 // static
32 DOMWindowStorageController& DOMWindowStorageController::from(Document& document) 38 DOMWindowStorageController& DOMWindowStorageController::from(Document& document)
33 { 39 {
34 DOMWindowStorageController* controller = static_cast<DOMWindowStorageControl ler*>(WillBeHeapSupplement<Document>::from(document, supplementName())); 40 DOMWindowStorageController* controller = static_cast<DOMWindowStorageControl ler*>(WillBeHeapSupplement<Document>::from(document, supplementName()));
(...skipping 10 matching lines...) Expand all
45 // 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
46 // 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
47 // 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
48 // simplify the work done by the system. 54 // simplify the work done by the system.
49 window->localStorage(IGNORE_EXCEPTION); 55 window->localStorage(IGNORE_EXCEPTION);
50 window->sessionStorage(IGNORE_EXCEPTION); 56 window->sessionStorage(IGNORE_EXCEPTION);
51 } 57 }
52 } 58 }
53 59
54 } // namespace blink 60 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/storage/DOMWindowStorageController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698