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

Side by Side Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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) 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) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
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 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 ResourceRequest m_resourceRequest; 294 ResourceRequest m_resourceRequest;
295 Member<ResourceLoader> m_loader; 295 Member<ResourceLoader> m_loader;
296 296
297 RefPtr<SharedBuffer> m_data; 297 RefPtr<SharedBuffer> m_data;
298 298
299 private: 299 private:
300 class ResourceCallback; 300 class ResourceCallback;
301 class CachedMetadataHandlerImpl; 301 class CachedMetadataHandlerImpl;
302 class ServiceWorkerResponseCachedMetadataHandler; 302 class ServiceWorkerResponseCachedMetadataHandler;
303 303
304 void cancelTimerFired(Timer<Resource>*); 304 void cancelTimerFired(TimerBase*);
305 305
306 void revalidationSucceeded(const ResourceResponse&); 306 void revalidationSucceeded(const ResourceResponse&);
307 void revalidationFailed(); 307 void revalidationFailed();
308 308
309 size_t calculateOverheadSize() const; 309 size_t calculateOverheadSize() const;
310 310
311 bool unlock(); 311 bool unlock();
312 312
313 String reasonNotDeletable() const; 313 String reasonNotDeletable() const;
314 314
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 Resource::Type m_type; 372 Resource::Type m_type;
373 }; 373 };
374 374
375 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ 375 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \
376 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType( ) == Resource::typeName, resource.getType() == Resource::typeName); 376 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, resource->getType( ) == Resource::typeName, resource.getType() == Resource::typeName);
377 377
378 } // namespace blink 378 } // namespace blink
379 379
380 #endif 380 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResourceTest.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698