Chromium Code Reviews| 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) 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 | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 6 rights reserved. | 6 rights reserved. |
| 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 395 | 395 |
| 396 SharedBuffer* data() const { return m_data.get(); } | 396 SharedBuffer* data() const { return m_data.get(); } |
| 397 void clearData(); | 397 void clearData(); |
| 398 | 398 |
| 399 class ProhibitAddRemoveClientInScope : public AutoReset<bool> { | 399 class ProhibitAddRemoveClientInScope : public AutoReset<bool> { |
| 400 public: | 400 public: |
| 401 ProhibitAddRemoveClientInScope(Resource* resource) | 401 ProhibitAddRemoveClientInScope(Resource* resource) |
| 402 : AutoReset(&resource->m_isAddRemoveClientProhibited, true) {} | 402 : AutoReset(&resource->m_isAddRemoveClientProhibited, true) {} |
| 403 }; | 403 }; |
| 404 | 404 |
| 405 bool isReloadable() const; | |
|
yhirano
2016/11/15 10:21:55
What does this method mean?
hajimehoshi
2016/11/15 10:50:07
This returns true when the resource can be reloade
| |
| 406 | |
| 405 private: | 407 private: |
| 406 class ResourceCallback; | 408 class ResourceCallback; |
| 407 class CachedMetadataHandlerImpl; | 409 class CachedMetadataHandlerImpl; |
| 408 class ServiceWorkerResponseCachedMetadataHandler; | 410 class ServiceWorkerResponseCachedMetadataHandler; |
| 409 | 411 |
| 410 void cancelTimerFired(TimerBase*); | 412 void cancelTimerFired(TimerBase*); |
| 411 | 413 |
| 412 void revalidationSucceeded(const ResourceResponse&); | 414 void revalidationSucceeded(const ResourceResponse&); |
| 413 void revalidationFailed(); | 415 void revalidationFailed(); |
| 414 | 416 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 493 }; | 495 }; |
| 494 | 496 |
| 495 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ | 497 #define DEFINE_RESOURCE_TYPE_CASTS(typeName) \ |
| 496 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ | 498 DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource, \ |
| 497 resource->getType() == Resource::typeName, \ | 499 resource->getType() == Resource::typeName, \ |
| 498 resource.getType() == Resource::typeName); | 500 resource.getType() == Resource::typeName); |
| 499 | 501 |
| 500 } // namespace blink | 502 } // namespace blink |
| 501 | 503 |
| 502 #endif | 504 #endif |
| OLD | NEW |