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

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

Issue 1179733009: Always enable Oilpan for EventSource. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: msvc compile fix Created 5 years, 5 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 22 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.cpp ('k') | Source/core/loader/WorkerLoaderClientBridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698