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

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

Issue 23444058: Use downloadToFile option when XHR downloads a Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase test style and XHR Created 7 years 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
« no previous file with comments | « Source/core/loader/FrameFetchContext.cpp ('k') | Source/core/loader/WorkerThreadableLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // All executed on the main thread. 106 // All executed on the main thread.
107 static void mainThreadDestroy(ExecutionContext*, MainThreadBridge*); 107 static void mainThreadDestroy(ExecutionContext*, MainThreadBridge*);
108 ~MainThreadBridge(); 108 ~MainThreadBridge();
109 109
110 static void mainThreadCreateLoader(ExecutionContext*, MainThreadBrid ge*, PassOwnPtr<CrossThreadResourceRequestData>, ThreadableLoaderOptions, const String& outgoingReferrer); 110 static void mainThreadCreateLoader(ExecutionContext*, MainThreadBrid ge*, PassOwnPtr<CrossThreadResourceRequestData>, ThreadableLoaderOptions, const String& outgoingReferrer);
111 static void mainThreadCancel(ExecutionContext*, MainThreadBridge*); 111 static void mainThreadCancel(ExecutionContext*, MainThreadBridge*);
112 virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) OVERRIDE; 112 virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) OVERRIDE;
113 virtual void didReceiveResponse(unsigned long identifier, const Reso urceResponse&) OVERRIDE; 113 virtual void didReceiveResponse(unsigned long identifier, const Reso urceResponse&) OVERRIDE;
114 virtual void didReceiveData(const char*, int dataLength) OVERRIDE; 114 virtual void didReceiveData(const char*, int dataLength) OVERRIDE;
115 virtual void didDownloadData(int dataLength) OVERRIDE;
115 virtual void didReceiveCachedMetadata(const char*, int dataLength) O VERRIDE; 116 virtual void didReceiveCachedMetadata(const char*, int dataLength) O VERRIDE;
116 virtual void didFinishLoading(unsigned long identifier, double finis hTime) OVERRIDE; 117 virtual void didFinishLoading(unsigned long identifier, double finis hTime) OVERRIDE;
117 virtual void didFail(const ResourceError&) OVERRIDE; 118 virtual void didFail(const ResourceError&) OVERRIDE;
118 virtual void didFailAccessControlCheck(const ResourceError&) OVERRID E; 119 virtual void didFailAccessControlCheck(const ResourceError&) OVERRID E;
119 virtual void didFailRedirectCheck() OVERRIDE; 120 virtual void didFailRedirectCheck() OVERRIDE;
120 121
121 // Only to be used on the main thread. 122 // Only to be used on the main thread.
122 RefPtr<ThreadableLoader> m_mainThreadLoader; 123 RefPtr<ThreadableLoader> m_mainThreadLoader;
123 124
124 // ThreadableLoaderClientWrapper is to be used on the worker context thread. 125 // ThreadableLoaderClientWrapper is to be used on the worker context thread.
(...skipping 10 matching lines...) Expand all
135 WorkerThreadableLoader(WorkerGlobalScope*, ThreadableLoaderClient*, cons t String& taskMode, const ResourceRequest&, const ThreadableLoaderOptions&); 136 WorkerThreadableLoader(WorkerGlobalScope*, ThreadableLoaderClient*, cons t String& taskMode, const ResourceRequest&, const ThreadableLoaderOptions&);
136 137
137 RefPtr<WorkerGlobalScope> m_workerGlobalScope; 138 RefPtr<WorkerGlobalScope> m_workerGlobalScope;
138 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper; 139 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper;
139 MainThreadBridge& m_bridge; 140 MainThreadBridge& m_bridge;
140 }; 141 };
141 142
142 } // namespace WebCore 143 } // namespace WebCore
143 144
144 #endif // WorkerThreadableLoader_h 145 #endif // WorkerThreadableLoader_h
OLDNEW
« no previous file with comments | « Source/core/loader/FrameFetchContext.cpp ('k') | Source/core/loader/WorkerThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698