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

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

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 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/DOMWindowStorage.h" 5 #include "modules/storage/DOMWindowStorage.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/frame/LocalDOMWindow.h" 8 #include "core/frame/LocalDOMWindow.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
11 #include "core/page/Page.h" 11 #include "core/page/Page.h"
12 #include "modules/storage/Storage.h" 12 #include "modules/storage/Storage.h"
13 #include "modules/storage/StorageNamespace.h" 13 #include "modules/storage/StorageNamespace.h"
14 #include "modules/storage/StorageNamespaceController.h" 14 #include "modules/storage/StorageNamespaceController.h"
15 #include "wtf/PassRefPtr.h" 15 #include "platform/wtf/PassRefPtr.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 DOMWindowStorage::DOMWindowStorage(LocalDOMWindow& window) 19 DOMWindowStorage::DOMWindowStorage(LocalDOMWindow& window)
20 : Supplement<LocalDOMWindow>(window) {} 20 : Supplement<LocalDOMWindow>(window) {}
21 21
22 DEFINE_TRACE(DOMWindowStorage) { 22 DEFINE_TRACE(DOMWindowStorage) {
23 visitor->Trace(session_storage_); 23 visitor->Trace(session_storage_);
24 visitor->Trace(local_storage_); 24 visitor->Trace(local_storage_);
25 Supplement<LocalDOMWindow>::Trace(visitor); 25 Supplement<LocalDOMWindow>::Trace(visitor);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 StorageNamespace::LocalStorageArea(document->GetSecurityOrigin()); 130 StorageNamespace::LocalStorageArea(document->GetSecurityOrigin());
131 if (!storage_area->CanAccessStorage(document->GetFrame())) { 131 if (!storage_area->CanAccessStorage(document->GetFrame())) {
132 exception_state.ThrowSecurityError(access_denied_message); 132 exception_state.ThrowSecurityError(access_denied_message);
133 return nullptr; 133 return nullptr;
134 } 134 }
135 local_storage_ = Storage::Create(document->GetFrame(), storage_area); 135 local_storage_ = Storage::Create(document->GetFrame(), storage_area);
136 return local_storage_; 136 return local_storage_;
137 } 137 }
138 138
139 } // namespace blink 139 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698