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

Side by Side Diff: third_party/WebKit/Source/modules/storage/StorageNamespaceController.cpp

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "modules/storage/StorageNamespaceController.h" 5 #include "modules/storage/StorageNamespaceController.h"
6 6
7 #include "modules/storage/InspectorDOMStorageAgent.h" 7 #include "modules/storage/InspectorDOMStorageAgent.h"
8 #include "modules/storage/StorageClient.h" 8 #include "modules/storage/StorageClient.h"
9 #include "modules/storage/StorageNamespace.h" 9 #include "modules/storage/StorageNamespace.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 const char* StorageNamespaceController::supplementName() 13 const char* StorageNamespaceController::supplementName()
14 { 14 {
15 return "StorageNamespaceController"; 15 return "StorageNamespaceController";
16 } 16 }
17 17
18 StorageNamespaceController::StorageNamespaceController(StorageClient* client) 18 StorageNamespaceController::StorageNamespaceController(StorageClient* client)
19 : m_client(client) 19 : m_client(client)
20 , m_inspectorAgent(nullptr) 20 , m_inspectorAgent(nullptr)
21 { 21 {
22 } 22 }
23 23
24 StorageNamespaceController::~StorageNamespaceController() 24 StorageNamespaceController::~StorageNamespaceController()
25 { 25 {
26 } 26 }
27 27
28 DEFINE_TRACE(StorageNamespaceController) 28 DEFINE_TRACE(StorageNamespaceController)
29 { 29 {
30 HeapSupplement<Page>::trace(visitor); 30 Supplement<Page>::trace(visitor);
31 visitor->trace(m_inspectorAgent); 31 visitor->trace(m_inspectorAgent);
32 } 32 }
33 33
34 StorageNamespace* StorageNamespaceController::sessionStorage(bool optionalCreate ) 34 StorageNamespace* StorageNamespaceController::sessionStorage(bool optionalCreate )
35 { 35 {
36 if (!m_sessionStorage && optionalCreate) 36 if (!m_sessionStorage && optionalCreate)
37 m_sessionStorage = m_client->createSessionStorageNamespace(); 37 m_sessionStorage = m_client->createSessionStorageNamespace();
38 return m_sessionStorage.get(); 38 return m_sessionStorage.get();
39 } 39 }
40 40
41 void StorageNamespaceController::provideStorageNamespaceTo(Page& page, StorageCl ient* client) 41 void StorageNamespaceController::provideStorageNamespaceTo(Page& page, StorageCl ient* client)
42 { 42 {
43 StorageNamespaceController::provideTo(page, supplementName(), new StorageNam espaceController(client)); 43 StorageNamespaceController::provideTo(page, supplementName(), new StorageNam espaceController(client));
44 } 44 }
45 45
46 } // namespace blink 46 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698