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

Side by Side Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 1216093003: Service Worker: Migrate to version_uuid and surface ServiceWorker.id. (Blink 1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/core/fetch/FetchContext.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 1013
1014 const ResourceLoaderOptions& ResourceFetcher::defaultResourceOptions() 1014 const ResourceLoaderOptions& ResourceFetcher::defaultResourceOptions()
1015 { 1015 {
1016 DEFINE_STATIC_LOCAL(ResourceLoaderOptions, options, (BufferData, AllowStored Credentials, ClientRequestedCredentials, CheckContentSecurityPolicy, DocumentCon text)); 1016 DEFINE_STATIC_LOCAL(ResourceLoaderOptions, options, (BufferData, AllowStored Credentials, ClientRequestedCredentials, CheckContentSecurityPolicy, DocumentCon text));
1017 return options; 1017 return options;
1018 } 1018 }
1019 1019
1020 String ResourceFetcher::getCacheIdentifier() const 1020 String ResourceFetcher::getCacheIdentifier() const
1021 { 1021 {
1022 if (context().isControlledByServiceWorker()) 1022 if (context().isControlledByServiceWorker())
1023 return String::number(context().serviceWorkerID()); 1023 return String::fromUTF8(context().serviceWorkerID().c_str());
1024 return MemoryCache::defaultCacheIdentifier(); 1024 return MemoryCache::defaultCacheIdentifier();
1025 } 1025 }
1026 1026
1027 ResourceFetcher::DeadResourceStatsRecorder::DeadResourceStatsRecorder() 1027 ResourceFetcher::DeadResourceStatsRecorder::DeadResourceStatsRecorder()
1028 : m_useCount(0) 1028 : m_useCount(0)
1029 , m_revalidateCount(0) 1029 , m_revalidateCount(0)
1030 , m_loadCount(0) 1030 , m_loadCount(0)
1031 { 1031 {
1032 } 1032 }
1033 1033
(...skipping 25 matching lines...) Expand all
1059 1059
1060 DEFINE_TRACE(ResourceFetcher) 1060 DEFINE_TRACE(ResourceFetcher)
1061 { 1061 {
1062 visitor->trace(m_context); 1062 visitor->trace(m_context);
1063 visitor->trace(m_archiveResourceCollection); 1063 visitor->trace(m_archiveResourceCollection);
1064 visitor->trace(m_loaders); 1064 visitor->trace(m_loaders);
1065 visitor->trace(m_nonBlockingLoaders); 1065 visitor->trace(m_nonBlockingLoaders);
1066 } 1066 }
1067 1067
1068 } 1068 }
OLDNEW
« no previous file with comments | « Source/core/fetch/FetchContext.h ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698