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

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

Issue 603903003: [Streams] Pass WebDataConsumerHandle when the response arrives. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@web-data-pipe
Patch Set: Created 6 years, 1 month 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void clearClientWrapper(); 97 void clearClientWrapper();
98 98
99 // All executed on the main thread. 99 // All executed on the main thread.
100 static void mainThreadDestroy(ExecutionContext*, MainThreadBridge*); 100 static void mainThreadDestroy(ExecutionContext*, MainThreadBridge*);
101 virtual ~MainThreadBridge(); 101 virtual ~MainThreadBridge();
102 102
103 static void mainThreadCreateLoader(ExecutionContext*, MainThreadBrid ge*, PassOwnPtr<CrossThreadResourceRequestData>, ThreadableLoaderOptions, Resour ceLoaderOptions, const String& outgoingReferrer); 103 static void mainThreadCreateLoader(ExecutionContext*, MainThreadBrid ge*, PassOwnPtr<CrossThreadResourceRequestData>, ThreadableLoaderOptions, Resour ceLoaderOptions, const String& outgoingReferrer);
104 static void mainThreadOverrideTimeout(ExecutionContext*, MainThreadB ridge*, unsigned long timeoutMilliseconds); 104 static void mainThreadOverrideTimeout(ExecutionContext*, MainThreadB ridge*, unsigned long timeoutMilliseconds);
105 static void mainThreadCancel(ExecutionContext*, MainThreadBridge*); 105 static void mainThreadCancel(ExecutionContext*, MainThreadBridge*);
106 virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override; 106 virtual void didSendData(unsigned long long bytesSent, unsigned long long totalBytesToBeSent) override;
107 virtual void didReceiveResponse(unsigned long identifier, const Reso urceResponse&) override; 107 virtual void didReceiveResponse(unsigned long identifier, const Reso urceResponse&, PassOwnPtr<WebDataConsumerHandle>) override;
108 virtual void didReceiveData(const char*, unsigned dataLength) overri de; 108 virtual void didReceiveData(const char*, unsigned dataLength) overri de;
109 virtual void didDownloadData(int dataLength) override; 109 virtual void didDownloadData(int dataLength) override;
110 virtual void didReceiveCachedMetadata(const char*, int dataLength) o verride; 110 virtual void didReceiveCachedMetadata(const char*, int dataLength) o verride;
111 virtual void didFinishLoading(unsigned long identifier, double finis hTime) override; 111 virtual void didFinishLoading(unsigned long identifier, double finis hTime) override;
112 virtual void didFail(const ResourceError&) override; 112 virtual void didFail(const ResourceError&) override;
113 virtual void didFailAccessControlCheck(const ResourceError&) overrid e; 113 virtual void didFailAccessControlCheck(const ResourceError&) overrid e;
114 virtual void didFailRedirectCheck() override; 114 virtual void didFailRedirectCheck() override;
115 115
116 // Only to be used on the main thread. 116 // Only to be used on the main thread.
117 RefPtr<ThreadableLoader> m_mainThreadLoader; 117 RefPtr<ThreadableLoader> m_mainThreadLoader;
(...skipping 10 matching lines...) Expand all
128 WorkerThreadableLoader(WorkerGlobalScope&, PassRefPtr<ThreadableLoaderCl ientWrapper>, PassOwnPtr<ThreadableLoaderClient>, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoaderOptions&); 128 WorkerThreadableLoader(WorkerGlobalScope&, PassRefPtr<ThreadableLoaderCl ientWrapper>, PassOwnPtr<ThreadableLoaderClient>, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoaderOptions&);
129 129
130 RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope; 130 RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope;
131 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper; 131 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper;
132 MainThreadBridge& m_bridge; 132 MainThreadBridge& m_bridge;
133 }; 133 };
134 134
135 } // namespace blink 135 } // namespace blink
136 136
137 #endif // WorkerThreadableLoader_h 137 #endif // WorkerThreadableLoader_h
OLDNEW
« no previous file with comments | « Source/core/loader/WorkerLoaderClientBridgeSyncHelper.cpp ('k') | Source/core/loader/WorkerThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698