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

Side by Side Diff: Source/core/loader/ThreadableLoaderClient.h

Issue 166903010: Oilpan: Move core/xml/ to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef ThreadableLoaderClient_h 31 #ifndef ThreadableLoaderClient_h
32 #define ThreadableLoaderClient_h 32 #define ThreadableLoaderClient_h
33 33
34 #include "heap/Handle.h"
34 #include "wtf/FastAllocBase.h" 35 #include "wtf/FastAllocBase.h"
35 #include "wtf/Noncopyable.h" 36 #include "wtf/Noncopyable.h"
36 37
37 namespace WebCore { 38 namespace WebCore {
38 39
39 class ResourceError; 40 class ResourceError;
40 class ResourceResponse; 41 class ResourceResponse;
41 42
42 class ThreadableLoaderClient { 43 class ThreadableLoaderClient {
43 WTF_MAKE_NONCOPYABLE(ThreadableLoaderClient); WTF_MAKE_FAST_ALLOCATED; 44 WTF_MAKE_NONCOPYABLE(ThreadableLoaderClient);
45 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
44 public: 46 public:
45 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long long /*totalBytesToBeSent*/) { } 47 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long long /*totalBytesToBeSent*/) { }
46 48
47 virtual void didReceiveResponse(unsigned long /*identifier*/, const Reso urceResponse&) { } 49 virtual void didReceiveResponse(unsigned long /*identifier*/, const Reso urceResponse&) { }
48 virtual void didReceiveData(const char*, int /*dataLength*/) { } 50 virtual void didReceiveData(const char*, int /*dataLength*/) { }
49 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/) { } 51 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/) { }
50 virtual void didFinishLoading(unsigned long /*identifier*/, double /*fin ishTime*/) { } 52 virtual void didFinishLoading(unsigned long /*identifier*/, double /*fin ishTime*/) { }
51 virtual void didFail(const ResourceError&) { } 53 virtual void didFail(const ResourceError&) { }
52 virtual void didFailAccessControlCheck(const ResourceError& error) { did Fail(error); } 54 virtual void didFailAccessControlCheck(const ResourceError& error) { did Fail(error); }
53 virtual void didFailRedirectCheck() { } 55 virtual void didFailRedirectCheck() { }
54 56
55 virtual bool isDocumentThreadableLoaderClient() { return false; } 57 virtual bool isDocumentThreadableLoaderClient() { return false; }
56 58
57 virtual void didDownloadData(int /*dataLength*/) { } 59 virtual void didDownloadData(int /*dataLength*/) { }
58 60
59 virtual ~ThreadableLoaderClient() { } 61 virtual ~ThreadableLoaderClient() { }
60 62
61 protected: 63 protected:
62 ThreadableLoaderClient() { } 64 ThreadableLoaderClient() { }
63 }; 65 };
64 66
65 } // namespace WebCore 67 } // namespace WebCore
66 68
67 #endif // ThreadableLoaderClient_h 69 #endif // ThreadableLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698