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

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

Issue 1729683007: Remove unused blink::WebStorageArea::memoryBytesUsedByCache(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 9 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) 2009 Google Inc. All Rights Reserved. 2 * Copyright (C) 2009 Google Inc. All Rights Reserved.
3 * (C) 2008 Apple Inc. 3 * (C) 2008 Apple Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 StorageNamespaceController* controller = StorageNamespaceController::from(fr ame->page()); 147 StorageNamespaceController* controller = StorageNamespaceController::from(fr ame->page());
148 if (!controller) 148 if (!controller)
149 return false; 149 return false;
150 bool result = controller->storageClient()->canAccessStorage(frame, m_storage Type); 150 bool result = controller->storageClient()->canAccessStorage(frame, m_storage Type);
151 // Move attention to the new LocalFrame. 151 // Move attention to the new LocalFrame.
152 LocalFrameLifecycleObserver::setContext(frame); 152 LocalFrameLifecycleObserver::setContext(frame);
153 m_canAccessStorageCachedResult = result; 153 m_canAccessStorageCachedResult = result;
154 return result; 154 return result;
155 } 155 }
156 156
157 size_t StorageArea::memoryBytesUsedByCache()
158 {
159 return m_storageArea->memoryBytesUsedByCache();
160 }
161
162 void StorageArea::dispatchLocalStorageEvent(const String& key, const String& old Value, const String& newValue, SecurityOrigin* securityOrigin, const KURL& pageU RL, WebStorageArea* sourceAreaInstance) 157 void StorageArea::dispatchLocalStorageEvent(const String& key, const String& old Value, const String& newValue, SecurityOrigin* securityOrigin, const KURL& pageU RL, WebStorageArea* sourceAreaInstance)
163 { 158 {
164 // Iterate over all pages that have a StorageNamespaceController supplement. 159 // Iterate over all pages that have a StorageNamespaceController supplement.
165 for (Page* page : Page::ordinaryPages()) { 160 for (Page* page : Page::ordinaryPages()) {
166 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().trav erseNext()) { 161 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().trav erseNext()) {
167 // FIXME: We do not yet have a way to dispatch events to out-of-proc ess frames. 162 // FIXME: We do not yet have a way to dispatch events to out-of-proc ess frames.
168 if (!frame->isLocalFrame()) 163 if (!frame->isLocalFrame())
169 continue; 164 continue;
170 LocalFrame* localFrame = toLocalFrame(frame); 165 LocalFrame* localFrame = toLocalFrame(frame);
171 LocalDOMWindow* localWindow = localFrame->localDOMWindow(); 166 LocalDOMWindow* localWindow = localFrame->localDOMWindow();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 206 }
212 207
213 bool StorageArea::isEventSource(Storage* storage, WebStorageArea* sourceAreaInst ance) 208 bool StorageArea::isEventSource(Storage* storage, WebStorageArea* sourceAreaInst ance)
214 { 209 {
215 ASSERT(storage); 210 ASSERT(storage);
216 StorageArea* area = storage->area(); 211 StorageArea* area = storage->area();
217 return area->m_storageArea == sourceAreaInstance; 212 return area->m_storageArea == sourceAreaInstance;
218 } 213 }
219 214
220 } // namespace blink 215 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/storage/StorageArea.h ('k') | third_party/WebKit/public/platform/WebStorageArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698