| 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  331   virtual void onMemoryDump(WebMemoryDumpLevelOfDetail, |  331   virtual void onMemoryDump(WebMemoryDumpLevelOfDetail, | 
|  332                             WebProcessMemoryDump*) const; |  332                             WebProcessMemoryDump*) const; | 
|  333  |  333  | 
|  334   static const char* resourceTypeToString(Type, const FetchInitiatorInfo&); |  334   static const char* resourceTypeToString(Type, const FetchInitiatorInfo&); | 
|  335  |  335  | 
|  336  protected: |  336  protected: | 
|  337   Resource(const ResourceRequest&, Type, const ResourceLoaderOptions&); |  337   Resource(const ResourceRequest&, Type, const ResourceLoaderOptions&); | 
|  338  |  338  | 
|  339   virtual void checkNotify(); |  339   virtual void checkNotify(); | 
|  340  |  340  | 
|  341   enum class MarkFinishedOption { ShouldMarkFinished, DoNotMarkFinished }; |  | 
|  342   void notifyClientsInternal(MarkFinishedOption); |  | 
|  343   void markClientFinished(ResourceClient*); |  341   void markClientFinished(ResourceClient*); | 
|  344  |  342  | 
|  345   virtual bool hasClientsOrObservers() const { |  343   virtual bool hasClientsOrObservers() const { | 
|  346     return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() || |  344     return !m_clients.isEmpty() || !m_clientsAwaitingCallback.isEmpty() || | 
|  347            !m_finishedClients.isEmpty(); |  345            !m_finishedClients.isEmpty(); | 
|  348   } |  346   } | 
|  349   virtual void destroyDecodedDataForFailedRevalidation() {} |  347   virtual void destroyDecodedDataForFailedRevalidation() {} | 
|  350  |  348  | 
|  351   void setEncodedSize(size_t); |  349   void setEncodedSize(size_t); | 
|  352   void setDecodedSize(size_t); |  350   void setDecodedSize(size_t); | 
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  494 }; |  492 }; | 
|  495  |  493  | 
|  496 #define DEFINE_RESOURCE_TYPE_CASTS(typeName)                   \ |  494 #define DEFINE_RESOURCE_TYPE_CASTS(typeName)                   \ | 
|  497   DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource,    \ |  495   DEFINE_TYPE_CASTS(typeName##Resource, Resource, resource,    \ | 
|  498                     resource->getType() == Resource::typeName, \ |  496                     resource->getType() == Resource::typeName, \ | 
|  499                     resource.getType() == Resource::typeName); |  497                     resource.getType() == Resource::typeName); | 
|  500  |  498  | 
|  501 }  // namespace blink |  499 }  // namespace blink | 
|  502  |  500  | 
|  503 #endif |  501 #endif | 
| OLD | NEW |