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

Side by Side Diff: Source/modules/quota/DOMWindowQuota.cpp

Issue 552733003: Oilpan: make DOMWindowProperty a GC mixin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pacify GC plugin wrt LocalDOMWindow::trace() Created 6 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "modules/quota/DeprecatedStorageInfo.h" 36 #include "modules/quota/DeprecatedStorageInfo.h"
37 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 DOMWindowQuota::DOMWindowQuota(LocalDOMWindow& window) 41 DOMWindowQuota::DOMWindowQuota(LocalDOMWindow& window)
42 : DOMWindowProperty(window.frame()) 42 : DOMWindowProperty(window.frame())
43 { 43 {
44 } 44 }
45 45
46 DOMWindowQuota::~DOMWindowQuota() 46 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowQuota);
47 {
48 }
49 47
50 const char* DOMWindowQuota::supplementName() 48 const char* DOMWindowQuota::supplementName()
51 { 49 {
52 return "DOMWindowQuota"; 50 return "DOMWindowQuota";
53 } 51 }
54 52
55 // static 53 // static
56 DOMWindowQuota& DOMWindowQuota::from(LocalDOMWindow& window) 54 DOMWindowQuota& DOMWindowQuota::from(LocalDOMWindow& window)
57 { 55 {
58 DOMWindowQuota* supplement = static_cast<DOMWindowQuota*>(WillBeHeapSuppleme nt<LocalDOMWindow>::from(window, supplementName())); 56 DOMWindowQuota* supplement = static_cast<DOMWindowQuota*>(WillBeHeapSuppleme nt<LocalDOMWindow>::from(window, supplementName()));
(...skipping 14 matching lines...) Expand all
73 { 71 {
74 if (!m_storageInfo && frame()) 72 if (!m_storageInfo && frame())
75 m_storageInfo = DeprecatedStorageInfo::create(); 73 m_storageInfo = DeprecatedStorageInfo::create();
76 return m_storageInfo.get(); 74 return m_storageInfo.get();
77 } 75 }
78 76
79 void DOMWindowQuota::trace(Visitor* visitor) 77 void DOMWindowQuota::trace(Visitor* visitor)
80 { 78 {
81 visitor->trace(m_storageInfo); 79 visitor->trace(m_storageInfo);
82 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor); 80 WillBeHeapSupplement<LocalDOMWindow>::trace(visitor);
81 DOMWindowProperty::trace(visitor);
83 } 82 }
84 83
85 } // namespace blink 84 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698