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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp

Issue 1757693002: Reduce use of DatabaseIdentifier in Indexed DB entry points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert change for ZIP file naming 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "modules/cachestorage/InspectorCacheStorageAgent.h" 50 #include "modules/cachestorage/InspectorCacheStorageAgent.h"
51 #include "modules/fetch/GlobalFetch.h" 51 #include "modules/fetch/GlobalFetch.h"
52 #include "modules/serviceworkers/ServiceWorkerClients.h" 52 #include "modules/serviceworkers/ServiceWorkerClients.h"
53 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 53 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
54 #include "modules/serviceworkers/ServiceWorkerRegistration.h" 54 #include "modules/serviceworkers/ServiceWorkerRegistration.h"
55 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h" 55 #include "modules/serviceworkers/ServiceWorkerScriptCachedMetadataHandler.h"
56 #include "modules/serviceworkers/ServiceWorkerThread.h" 56 #include "modules/serviceworkers/ServiceWorkerThread.h"
57 #include "modules/serviceworkers/WaitUntilObserver.h" 57 #include "modules/serviceworkers/WaitUntilObserver.h"
58 #include "platform/Histogram.h" 58 #include "platform/Histogram.h"
59 #include "platform/network/ResourceRequest.h" 59 #include "platform/network/ResourceRequest.h"
60 #include "platform/weborigin/DatabaseIdentifier.h"
61 #include "platform/weborigin/KURL.h" 60 #include "platform/weborigin/KURL.h"
62 #include "public/platform/Platform.h" 61 #include "public/platform/Platform.h"
63 #include "public/platform/WebURL.h" 62 #include "public/platform/WebURL.h"
64 #include "wtf/CurrentTime.h" 63 #include "wtf/CurrentTime.h"
65 64
66 namespace blink { 65 namespace blink {
67 66
68 PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> ServiceWorkerGlobalScope::creat e(ServiceWorkerThread* thread, PassOwnPtr<WorkerThreadStartupData> startupData) 67 PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> ServiceWorkerGlobalScope::creat e(ServiceWorkerThread* thread, PassOwnPtr<WorkerThreadStartupData> startupData)
69 { 68 {
70 // Note: startupData is finalized on return. After the relevant parts has be en 69 // Note: startupData is finalized on return. After the relevant parts has be en
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 220 }
222 221
223 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta dataSize) 222 void ServiceWorkerGlobalScope::scriptLoaded(size_t scriptSize, size_t cachedMeta dataSize)
224 { 223 {
225 ++m_scriptCount; 224 ++m_scriptCount;
226 m_scriptTotalSize += scriptSize; 225 m_scriptTotalSize += scriptSize;
227 m_scriptCachedMetadataTotalSize += cachedMetadataSize; 226 m_scriptCachedMetadataTotalSize += cachedMetadataSize;
228 } 227 }
229 228
230 } // namespace blink 229 } // namespace blink
OLDNEW
« content/public/browser/indexed_db_context.h ('K') | « content/public/browser/indexed_db_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698