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

Side by Side Diff: Source/core/page/EventSource.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/loader/WorkerThreadableLoader.cpp ('k') | Source/core/page/EventSource.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, 2012 Ericsson AB. All rights reserved. 2 * Copyright (C) 2009, 2012 Ericsson AB. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple 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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Page::setDefersLoading() and it defers delivery of events from the 86 // Page::setDefersLoading() and it defers delivery of events from the
87 // loader, and therefore the methods of this class for receiving 87 // loader, and therefore the methods of this class for receiving
88 // asynchronous events from the loader won't be invoked. 88 // asynchronous events from the loader won't be invoked.
89 virtual void stop() override; 89 virtual void stop() override;
90 90
91 virtual bool hasPendingActivity() const override; 91 virtual bool hasPendingActivity() const override;
92 92
93 private: 93 private:
94 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&); 94 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&);
95 95
96 virtual void didReceiveResponse(unsigned long, const ResourceResponse&) over ride; 96 virtual void didReceiveResponse(unsigned long, const ResourceResponse&, Pass OwnPtr<WebDataConsumerHandle>) override;
97 virtual void didReceiveData(const char*, unsigned) override; 97 virtual void didReceiveData(const char*, unsigned) override;
98 virtual void didFinishLoading(unsigned long, double) override; 98 virtual void didFinishLoading(unsigned long, double) override;
99 virtual void didFail(const ResourceError&) override; 99 virtual void didFail(const ResourceError&) override;
100 virtual void didFailAccessControlCheck(const ResourceError&) override; 100 virtual void didFailAccessControlCheck(const ResourceError&) override;
101 virtual void didFailRedirectCheck() override; 101 virtual void didFailRedirectCheck() override;
102 102
103 void scheduleInitialConnect(); 103 void scheduleInitialConnect();
104 void connect(); 104 void connect();
105 void networkRequestEnded(); 105 void networkRequestEnded();
106 void scheduleReconnect(); 106 void scheduleReconnect();
(...skipping 18 matching lines...) Expand all
125 Vector<UChar> m_data; 125 Vector<UChar> m_data;
126 AtomicString m_currentlyParsedEventId; 126 AtomicString m_currentlyParsedEventId;
127 AtomicString m_lastEventId; 127 AtomicString m_lastEventId;
128 unsigned long long m_reconnectDelay; 128 unsigned long long m_reconnectDelay;
129 String m_eventStreamOrigin; 129 String m_eventStreamOrigin;
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif // EventSource_h 134 #endif // EventSource_h
OLDNEW
« no previous file with comments | « Source/core/loader/WorkerThreadableLoader.cpp ('k') | Source/core/page/EventSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698