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

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

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable Created 5 years, 1 month 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 "config.h" 5 #include "config.h"
6 #include "modules/storage/StorageNamespaceController.h" 6 #include "modules/storage/StorageNamespaceController.h"
7 7
8 #include "modules/storage/InspectorDOMStorageAgent.h" 8 #include "modules/storage/InspectorDOMStorageAgent.h"
9 #include "modules/storage/StorageClient.h" 9 #include "modules/storage/StorageClient.h"
10 #include "modules/storage/StorageNamespace.h" 10 #include "modules/storage/StorageNamespace.h"
(...skipping 14 matching lines...) Expand all
25 StorageNamespaceController::~StorageNamespaceController() 25 StorageNamespaceController::~StorageNamespaceController()
26 { 26 {
27 } 27 }
28 28
29 DEFINE_TRACE(StorageNamespaceController) 29 DEFINE_TRACE(StorageNamespaceController)
30 { 30 {
31 WillBeHeapSupplement<Page>::trace(visitor); 31 WillBeHeapSupplement<Page>::trace(visitor);
32 visitor->trace(m_inspectorAgent); 32 visitor->trace(m_inspectorAgent);
33 } 33 }
34 34
35 InspectorDOMStorageAgent* StorageNamespaceController::inspectorAgent()
36 {
37 return m_inspectorAgent;
38 }
39
40 void StorageNamespaceController::setInspectorAgent(InspectorDOMStorageAgent* age nt)
41 {
42 m_inspectorAgent = agent;
43 }
44
45 StorageNamespace* StorageNamespaceController::sessionStorage(bool optionalCreate ) 35 StorageNamespace* StorageNamespaceController::sessionStorage(bool optionalCreate )
46 { 36 {
47 if (!m_sessionStorage && optionalCreate) 37 if (!m_sessionStorage && optionalCreate)
48 m_sessionStorage = m_client->createSessionStorageNamespace(); 38 m_sessionStorage = m_client->createSessionStorageNamespace();
49 return m_sessionStorage.get(); 39 return m_sessionStorage.get();
50 } 40 }
51 41
52 void StorageNamespaceController::provideStorageNamespaceTo(Page& page, StorageCl ient* client) 42 void StorageNamespaceController::provideStorageNamespaceTo(Page& page, StorageCl ient* client)
53 { 43 {
54 StorageNamespaceController::provideTo(page, supplementName(), adoptPtrWillBe Noop(new StorageNamespaceController(client))); 44 StorageNamespaceController::provideTo(page, supplementName(), adoptPtrWillBe Noop(new StorageNamespaceController(client)));
55 } 45 }
56 46
57 } // namespace blink 47 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698