OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |