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

Side by Side Diff: third_party/WebKit/Source/core/page/EventSource.h

Issue 1264453002: Split the constructor of ThreadableLoader into two methods (ctor and start()) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added comments Created 4 years, 10 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
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 KURL m_url; 114 KURL m_url;
115 bool m_withCredentials; 115 bool m_withCredentials;
116 State m_state; 116 State m_state;
117 117
118 OwnPtr<TextResourceDecoder> m_decoder; 118 OwnPtr<TextResourceDecoder> m_decoder;
119 RefPtr<ThreadableLoader> m_loader; 119 RefPtr<ThreadableLoader> m_loader;
120 Timer<EventSource> m_connectTimer; 120 Timer<EventSource> m_connectTimer;
121 Vector<UChar> m_receiveBuf; 121 Vector<UChar> m_receiveBuf;
122 bool m_discardTrailingNewline; 122 bool m_discardTrailingNewline;
123 bool m_requestInFlight;
124 123
125 AtomicString m_eventName; 124 AtomicString m_eventName;
126 Vector<UChar> m_data; 125 Vector<UChar> m_data;
127 AtomicString m_currentlyParsedEventId; 126 AtomicString m_currentlyParsedEventId;
128 AtomicString m_lastEventId; 127 AtomicString m_lastEventId;
129 unsigned long long m_reconnectDelay; 128 unsigned long long m_reconnectDelay;
130 String m_eventStreamOrigin; 129 String m_eventStreamOrigin;
131 }; 130 };
132 131
133 } // namespace blink 132 } // namespace blink
134 133
135 #endif // EventSource_h 134 #endif // EventSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698