Chromium Code Reviews| 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 24 matching lines...) Expand all Loading... | |
| 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 | 46 |
| 46 class CORE_EXPORT ThreadableLoaderClient { | 47 class CORE_EXPORT ThreadableLoaderClient { |
| 47 WTF_MAKE_NONCOPYABLE(ThreadableLoaderClient); | 48 WTF_MAKE_NONCOPYABLE(ThreadableLoaderClient); |
| 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ThreadableLoaderClient); | 49 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ThreadableLoaderClient); |
| 49 public: | 50 public: |
| 50 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long long /*totalBytesToBeSent*/) { } | 51 virtual void didSendData(unsigned long long /*bytesSent*/, unsigned long long /*totalBytesToBeSent*/) { } |
| 51 | 52 |
| 52 virtual void didReceiveResponse(unsigned long /*identifier*/, const Reso urceResponse&, PassOwnPtr<WebDataConsumerHandle>) { } | 53 virtual void didReceiveResponse(unsigned long /*identifier*/, const Reso urceResponse&, PassOwnPtr<WebDataConsumerHandle>) { } |
| 53 virtual void didReceiveData(const char*, unsigned /*dataLength*/) { } | 54 virtual void didReceiveData(const char*, unsigned /*dataLength*/) { } |
| 54 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/) { } | 55 virtual void didReceiveCachedMetadata(const char*, int /*dataLength*/) { } |
| 55 virtual void didFinishLoading(unsigned long /*identifier*/, double /*fin ishTime*/) { } | 56 virtual void didFinishLoading(unsigned long /*identifier*/, double /*fin ishTime*/) { } |
| 56 virtual void didFail(const ResourceError&) { } | 57 virtual void didFail(const ResourceError&) { } |
| 57 virtual void didFailAccessControlCheck(const ResourceError& error) { did Fail(error); } | 58 virtual void didFailAccessControlCheck(const ResourceError& error) { did Fail(error); } |
| 58 virtual void didFailRedirectCheck() { } | 59 virtual void didFailRedirectCheck() { } |
| 60 virtual void didReceiveResourceTiming(const ResourceTimingInfo&) { } | |
|
Nate Chapin
2015/06/23 18:17:17
I don't know the worker logic very well; is there
Kunihiko Sakamoto
2015/06/24 01:31:32
I agree this is a bit strange, but kinuko@ and I t
| |
| 59 | 61 |
| 60 virtual bool isDocumentThreadableLoaderClient() { return false; } | 62 virtual bool isDocumentThreadableLoaderClient() { return false; } |
| 61 | 63 |
| 62 virtual void didDownloadData(int /*dataLength*/) { } | 64 virtual void didDownloadData(int /*dataLength*/) { } |
| 63 | 65 |
| 64 virtual ~ThreadableLoaderClient() { } | 66 virtual ~ThreadableLoaderClient() { } |
| 65 | 67 |
| 66 protected: | 68 protected: |
| 67 ThreadableLoaderClient() { } | 69 ThreadableLoaderClient() { } |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace blink | 72 } // namespace blink |
| 71 | 73 |
| 72 #endif // ThreadableLoaderClient_h | 74 #endif // ThreadableLoaderClient_h |
| OLD | NEW |