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

Side by Side Diff: Source/core/workers/WorkerScriptLoader.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
« no previous file with comments | « Source/core/page/EventSource.cpp ('k') | Source/core/workers/WorkerScriptLoader.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 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void cancel(); 64 void cancel();
65 65
66 void setClient(WorkerScriptLoaderClient* client) { m_client = client; } 66 void setClient(WorkerScriptLoaderClient* client) { m_client = client; }
67 67
68 String script(); 68 String script();
69 const KURL& url() const { return m_url; } 69 const KURL& url() const { return m_url; }
70 const KURL& responseURL() const; 70 const KURL& responseURL() const;
71 bool failed() const { return m_failed; } 71 bool failed() const { return m_failed; }
72 unsigned long identifier() const { return m_identifier; } 72 unsigned long identifier() const { return m_identifier; }
73 73
74 virtual void didReceiveResponse(unsigned long /*identifier*/, const Resource Response&) override; 74 virtual void didReceiveResponse(unsigned long /*identifier*/, const Resource Response&, PassOwnPtr<WebDataConsumerHandle>) override;
75 virtual void didReceiveData(const char* data, unsigned dataLength) override; 75 virtual void didReceiveData(const char* data, unsigned dataLength) override;
76 virtual void didFinishLoading(unsigned long identifier, double) override; 76 virtual void didFinishLoading(unsigned long identifier, double) override;
77 virtual void didFail(const ResourceError&) override; 77 virtual void didFail(const ResourceError&) override;
78 virtual void didFailRedirectCheck() override; 78 virtual void didFailRedirectCheck() override;
79 79
80 void setRequestContext(WebURLRequest::RequestContext requestContext) { m_req uestContext = requestContext; } 80 void setRequestContext(WebURLRequest::RequestContext requestContext) { m_req uestContext = requestContext; }
81 81
82 private: 82 private:
83 friend class WTF::RefCounted<WorkerScriptLoader>; 83 friend class WTF::RefCounted<WorkerScriptLoader>;
84 84
(...skipping 12 matching lines...) Expand all
97 KURL m_responseURL; 97 KURL m_responseURL;
98 bool m_failed; 98 bool m_failed;
99 unsigned long m_identifier; 99 unsigned long m_identifier;
100 bool m_finishing; 100 bool m_finishing;
101 WebURLRequest::RequestContext m_requestContext; 101 WebURLRequest::RequestContext m_requestContext;
102 }; 102 };
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 #endif // WorkerScriptLoader_h 106 #endif // WorkerScriptLoader_h
OLDNEW
« no previous file with comments | « Source/core/page/EventSource.cpp ('k') | Source/core/workers/WorkerScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698