| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "public/platform/WebDataConsumerHandle.h" | 36 #include "public/platform/WebDataConsumerHandle.h" |
| 37 #include "wtf/FastAllocBase.h" | 37 #include "wtf/FastAllocBase.h" |
| 38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
| 39 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class ResourceError; | 43 class ResourceError; |
| 44 class ResourceResponse; | 44 class ResourceResponse; |
| 45 class ResourceTimingInfo; | 45 class ResourceTimingInfo; |
| 46 | 46 |
| 47 class CORE_EXPORT ThreadableLoaderClient { | 47 class CORE_EXPORT ThreadableLoaderClient { |
| 48 WTF_MAKE_NONCOPYABLE(ThreadableLoaderClient); | 48 WTF_MAKE_NONCOPYABLE(ThreadableLoaderClient); |
| 49 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ThreadableLoaderClient); | 49 public: |
| 50 public: | 50 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long lon
g /*totalBytesToBeSent*/) { } |
| 51 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long
long /*totalBytesToBeSent*/) { } | |
| 52 | 51 |
| 53 virtual void didReceiveResponse(unsigned long /*identifier*/, const Reso
urceResponse&, PassOwnPtr<WebDataConsumerHandle>) { } | 52 virtual void didReceiveResponse(unsigned long /*identifier*/, const Resource
Response&, PassOwnPtr<WebDataConsumerHandle>) { } |
| 54 virtual void didReceiveData(const char*, unsigned /*dataLength*/) { } | 53 virtual void didReceiveData(const char*, unsigned /*dataLength*/) { } |
| 55 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/) {
} | 54 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/) { } |
| 56 virtual void didFinishLoading(unsigned long /*identifier*/, double /*fin
ishTime*/) { } | 55 virtual void didFinishLoading(unsigned long /*identifier*/, double /*finishT
ime*/) { } |
| 57 virtual void didFail(const ResourceError&) { } | 56 virtual void didFail(const ResourceError&) { } |
| 58 virtual void didFailAccessControlCheck(const ResourceError& error) { did
Fail(error); } | 57 virtual void didFailAccessControlCheck(const ResourceError& error) { didFail
(error); } |
| 59 virtual void didFailRedirectCheck() { } | 58 virtual void didFailRedirectCheck() { } |
| 60 virtual void didReceiveResourceTiming(const ResourceTimingInfo&) { } | 59 virtual void didReceiveResourceTiming(const ResourceTimingInfo&) { } |
| 61 | 60 |
| 62 virtual bool isDocumentThreadableLoaderClient() { return false; } | 61 virtual bool isDocumentThreadableLoaderClient() { return false; } |
| 63 | 62 |
| 64 virtual void didDownloadData(int /*dataLength*/) { } | 63 virtual void didDownloadData(int /*dataLength*/) { } |
| 65 | 64 |
| 66 virtual ~ThreadableLoaderClient() { } | 65 virtual ~ThreadableLoaderClient() { } |
| 67 | 66 |
| 68 protected: | 67 protected: |
| 69 ThreadableLoaderClient() { } | 68 ThreadableLoaderClient() { } |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace blink | 71 } // namespace blink |
| 73 | 72 |
| 74 #endif // ThreadableLoaderClient_h | 73 #endif // ThreadableLoaderClient_h |
| OLD | NEW |