Commit cb953664 authored by ap@apple.com's avatar ap@apple.com

Move CachedRawResourceClient into a separate file

        https://bugs.webkit.org/show_bug.cgi?id=114491

        Reviewed by Mark Rowe.

        * GNUmakefile.list.am:
        * Target.pri:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.vcxproj/WebCore.vcxproj:
        * WebCore.vcxproj/WebCore.vcxproj.filters:
        * WebCore.xcodeproj/project.pbxproj:
        * loader/DocumentLoader.cpp:
        * loader/DocumentLoader.h:
        * loader/DocumentThreadableLoader.h:
        * loader/archive/cf/LegacyWebArchive.cpp:
        * loader/cache/CachedRawResource.cpp:
        * loader/cache/CachedRawResource.h:
        * loader/cache/CachedRawResourceClient.h: Added.
        * loader/icon/IconLoader.h:
        * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a86b1954
2013-04-11 Alexey Proskuryakov <ap@apple.com>
Move CachedRawResourceClient into a separate file
https://bugs.webkit.org/show_bug.cgi?id=114491
Reviewed by Mark Rowe.
* GNUmakefile.list.am:
* Target.pri:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* loader/DocumentLoader.cpp:
* loader/DocumentLoader.h:
* loader/DocumentThreadableLoader.h:
* loader/archive/cf/LegacyWebArchive.cpp:
* loader/cache/CachedRawResource.cpp:
* loader/cache/CachedRawResource.h:
* loader/cache/CachedRawResourceClient.h: Added.
* loader/icon/IconLoader.h:
* platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:
2013-04-12 Commit Queue <rniwa@webkit.org>
Unreviewed, rolling out r148262.
......@@ -4007,6 +4007,7 @@ webcore_sources += \
Source/WebCore/loader/cache/CachedResourceClientWalker.h \
Source/WebCore/loader/cache/CachedRawResource.cpp \
Source/WebCore/loader/cache/CachedRawResource.h \
Source/WebCore/loader/cache/CachedRawResourceClient.h \
Source/WebCore/loader/cache/CachedResource.cpp \
Source/WebCore/loader/cache/CachedResource.h \
Source/WebCore/loader/cache/CachedResourceHandle.cpp \
......
......@@ -2035,6 +2035,8 @@ HEADERS += \
loader/cache/CachedCSSStyleSheet.h \
loader/cache/CachedFont.h \
loader/cache/CachedImage.h \
loader/cache/CachedRawResource.h \
loader/cache/CachedRawResourceClient.h \
loader/cache/CachedResourceClientWalker.h \
loader/cache/CachedResource.h \
loader/cache/CachedResourceHandle.h \
......
......@@ -28685,6 +28685,10 @@
RelativePath="..\loader\cache\CachedRawResource.h"
>
</File>
<File
RelativePath="..\loader\cache\CachedRawResourceClient.h"
>
</File>
<File
RelativePath="..\loader\cache\CachedResource.cpp"
>
......@@ -11531,6 +11531,7 @@
<ClInclude Include="..\loader\cache\CachedFont.h" />
<ClInclude Include="..\loader\cache\CachedImage.h" />
<ClInclude Include="..\loader\cache\CachedRawResource.h" />
<ClInclude Include="..\loader\cache\CachedRawResourceClient.h" />
<ClInclude Include="..\loader\cache\CachedResource.h" />
<ClInclude Include="..\loader\cache\CachedResourceClient.h" />
<ClInclude Include="..\loader\cache\CachedResourceClientWalker.h" />
......@@ -2412,6 +2412,9 @@
<ClCompile Include="..\loader\cache\CachedRawResource.cpp">
<Filter>loader\cache</Filter>
</ClCompile>
<ClCompile Include="..\loader\cache\CachedRawResourceClient.cpp">
<Filter>loader\cache</Filter>
</ClCompile>
<ClCompile Include="..\loader\cache\CachedResource.cpp">
<Filter>loader\cache</Filter>
</ClCompile>
......
......@@ -5455,6 +5455,7 @@
E1B25107152A0BB00069B779 /* StylePropertyShorthand.h in Headers */ = {isa = PBXBuildFile; fileRef = E1B25105152A0BAF0069B779 /* StylePropertyShorthand.h */; };
E1B4CD2510B322E200BFFD7E /* CredentialStorageMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = E1B4CD2410B322E200BFFD7E /* CredentialStorageMac.mm */; };
E1B533471717D0A100F205F9 /* CachedSVGDocumentReference.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1B533461717D0A000F205F9 /* CachedSVGDocumentReference.cpp */; };
E1B533491717DEE300F205F9 /* CachedRawResourceClient.h in Headers */ = {isa = PBXBuildFile; fileRef = E1B533481717DEE300F205F9 /* CachedRawResourceClient.h */; settings = {ATTRIBUTES = (Private, ); }; };
E1B7839C163740A70007B692 /* SharedWorkerStrategy.h in Headers */ = {isa = PBXBuildFile; fileRef = E1B7839B163740A70007B692 /* SharedWorkerStrategy.h */; settings = {ATTRIBUTES = (Private, ); }; };
E1B784201639CBBE0007B692 /* SharedWorkerRepository.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1B7841F1639CBBE0007B692 /* SharedWorkerRepository.cpp */; };
E1BA003116FB92AC00BA7A35 /* ResourceHandleClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E1BA003016FB92AC00BA7A35 /* ResourceHandleClient.cpp */; };
......@@ -12260,6 +12261,7 @@
E1B25105152A0BAF0069B779 /* StylePropertyShorthand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StylePropertyShorthand.h; sourceTree = "<group>"; };
E1B4CD2410B322E200BFFD7E /* CredentialStorageMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CredentialStorageMac.mm; sourceTree = "<group>"; };
E1B533461717D0A000F205F9 /* CachedSVGDocumentReference.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CachedSVGDocumentReference.cpp; sourceTree = "<group>"; };
E1B533481717DEE300F205F9 /* CachedRawResourceClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CachedRawResourceClient.h; sourceTree = "<group>"; };
E1B7839B163740A70007B692 /* SharedWorkerStrategy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SharedWorkerStrategy.h; path = workers/SharedWorkerStrategy.h; sourceTree = "<group>"; };
E1B7841F1639CBBE0007B692 /* SharedWorkerRepository.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SharedWorkerRepository.cpp; path = workers/SharedWorkerRepository.cpp; sourceTree = "<group>"; };
E1BA003016FB92AC00BA7A35 /* ResourceHandleClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ResourceHandleClient.cpp; sourceTree = "<group>"; };
......@@ -17560,6 +17562,7 @@
319FBD5D15D2F444009640A6 /* CachedImageClient.h */,
D0EDA772143E303C0028E383 /* CachedRawResource.cpp */,
D0EDA773143E303C0028E383 /* CachedRawResource.h */,
E1B533481717DEE300F205F9 /* CachedRawResourceClient.h */,
BCB16C060979C3BD00467741 /* CachedResource.cpp */,
BCB16C070979C3BD00467741 /* CachedResource.h */,
BCFB2E5D0979E46400BA703D /* CachedResourceClient.h */,
......@@ -24056,6 +24059,7 @@
E180810F16FCECDF00B80D07 /* WebCoreResourceHandleAsDelegate.h in Headers */,
E180811716FCF9CB00B80D07 /* SynchronousLoaderClient.h in Headers */,
E152551516FD2350003D7ADB /* WebCoreResourceHandleAsOperationQueueDelegate.h in Headers */,
E1B533491717DEE300F205F9 /* CachedRawResourceClient.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -33,6 +33,7 @@
#include "ApplicationCacheHost.h"
#include "ArchiveResourceCollection.h"
#include "CachedPage.h"
#include "CachedRawResource.h"
#include "CachedResourceLoader.h"
#include "DOMWindow.h"
#include "Document.h"
......
......@@ -30,7 +30,7 @@
#ifndef DocumentLoader_h
#define DocumentLoader_h
#include "CachedRawResource.h"
#include "CachedRawResourceClient.h"
#include "CachedResourceHandle.h"
#include "DocumentLoadTiming.h"
#include "DocumentWriter.h"
......@@ -62,6 +62,7 @@ namespace WebCore {
#endif
class ArchiveResource;
class ArchiveResourceCollection;
class CachedRawResource;
class CachedResourceLoader;
class ContentFilter;
class FormState;
......
......@@ -31,7 +31,7 @@
#ifndef DocumentThreadableLoader_h
#define DocumentThreadableLoader_h
#include "CachedRawResource.h"
#include "CachedRawResourceClient.h"
#include "CachedResourceHandle.h"
#include "FrameLoaderTypes.h"
#include "ThreadableLoader.h"
......@@ -43,6 +43,7 @@
#include <wtf/text/WTFString.h>
namespace WebCore {
class CachedRawResource;
class Document;
class KURL;
class ResourceRequest;
......
......@@ -29,7 +29,7 @@
#include "config.h"
#include "LegacyWebArchive.h"
#include "MemoryCache.h"
#include "CachedResource.h"
#include "Document.h"
#include "DocumentLoader.h"
#include "Frame.h"
......@@ -42,14 +42,12 @@
#include "Image.h"
#include "KURLHash.h"
#include "Logging.h"
#include "markup.h"
#include "Node.h"
#include "MemoryCache.h"
#include "Page.h"
#include "Range.h"
#include "ResourceBuffer.h"
#include "Settings.h"
#include <wtf/text/CString.h>
#include <wtf/text/WTFString.h>
#include "markup.h"
#include <wtf/ListHashSet.h>
#include <wtf/RetainPtr.h>
......
......@@ -26,7 +26,7 @@
#include "config.h"
#include "CachedRawResource.h"
#include "CachedResourceClient.h"
#include "CachedRawResourceClient.h"
#include "CachedResourceClientWalker.h"
#include "CachedResourceLoader.h"
#include "ResourceBuffer.h"
......
......@@ -24,11 +24,10 @@
#define CachedRawResource_h
#include "CachedResource.h"
#include "CachedResourceClient.h"
namespace WebCore {
class CachedRawResourceCallback;
class CachedRawResourceClient;
class CachedResourceClient;
class SubresourceLoader;
class CachedRawResource : public CachedResource {
......@@ -82,19 +81,6 @@ private:
Vector<RedirectPair> m_redirectChain;
};
class CachedRawResourceClient : public CachedResourceClient {
public:
virtual ~CachedRawResourceClient() { }
static CachedResourceClientType expectedType() { return RawResourceType; }
virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
virtual void dataSent(CachedResource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
virtual void responseReceived(CachedResource*, const ResourceResponse&) { }
virtual void dataReceived(CachedResource*, const char* /* data */, int /* length */) { }
virtual void redirectReceived(CachedResource*, ResourceRequest&, const ResourceResponse&) { }
};
}
#endif // CachedRawResource_h
/*
Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef CachedRawResourceClient_h
#define CachedRawResourceClient_h
#include "CachedResourceClient.h"
namespace WebCore {
class CachedResource;
class ResourceRequest;
class ResourceResponse;
class CachedRawResourceClient : public CachedResourceClient {
public:
virtual ~CachedRawResourceClient() { }
static CachedResourceClientType expectedType() { return RawResourceType; }
virtual CachedResourceClientType resourceClientType() const OVERRIDE { return expectedType(); }
virtual void dataSent(CachedResource*, unsigned long long /* bytesSent */, unsigned long long /* totalBytesToBeSent */) { }
virtual void responseReceived(CachedResource*, const ResourceResponse&) { }
virtual void dataReceived(CachedResource*, const char* /* data */, int /* length */) { }
virtual void redirectReceived(CachedResource*, ResourceRequest&, const ResourceResponse&) { }
};
}
#endif // CachedRawResourceClient_h
......@@ -26,7 +26,7 @@
#ifndef IconLoader_h
#define IconLoader_h
#include "CachedRawResource.h"
#include "CachedRawResourceClient.h"
#include "CachedResourceHandle.h"
#include <wtf/Forward.h>
#include <wtf/Noncopyable.h>
......
......@@ -28,7 +28,7 @@
#if ENABLE(VIDEO) && USE(AVFOUNDATION) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
#include "CachedRawResource.h"
#include "CachedRawResourceClient.h"
#include "CachedResourceHandle.h"
#include <wtf/PassOwnPtr.h>
#include <wtf/RetainPtr.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment