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

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

Issue 74493002: Removed refcounting from TextResourceDecoder (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step2
Patch Set: Compile fix Created 7 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, 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void connectTimerFired(Timer<EventSource>*); 103 void connectTimerFired(Timer<EventSource>*);
104 void abortConnectionAttempt(); 104 void abortConnectionAttempt();
105 void parseEventStream(); 105 void parseEventStream();
106 void parseEventStreamLine(unsigned pos, int fieldLength, int lineLength); 106 void parseEventStreamLine(unsigned pos, int fieldLength, int lineLength);
107 PassRefPtr<MessageEvent> createMessageEvent(); 107 PassRefPtr<MessageEvent> createMessageEvent();
108 108
109 KURL m_url; 109 KURL m_url;
110 bool m_withCredentials; 110 bool m_withCredentials;
111 State m_state; 111 State m_state;
112 112
113 RefPtr<TextResourceDecoder> m_decoder; 113 OwnPtr<TextResourceDecoder> m_decoder;
114 RefPtr<ThreadableLoader> m_loader; 114 RefPtr<ThreadableLoader> m_loader;
115 Timer<EventSource> m_connectTimer; 115 Timer<EventSource> m_connectTimer;
116 Vector<UChar> m_receiveBuf; 116 Vector<UChar> m_receiveBuf;
117 bool m_discardTrailingNewline; 117 bool m_discardTrailingNewline;
118 bool m_requestInFlight; 118 bool m_requestInFlight;
119 119
120 String m_eventName; 120 String m_eventName;
121 Vector<UChar> m_data; 121 Vector<UChar> m_data;
122 String m_currentlyParsedEventId; 122 String m_currentlyParsedEventId;
123 String m_lastEventId; 123 String m_lastEventId;
124 unsigned long long m_reconnectDelay; 124 unsigned long long m_reconnectDelay;
125 String m_eventStreamOrigin; 125 String m_eventStreamOrigin;
126 }; 126 };
127 127
128 } // namespace WebCore 128 } // namespace WebCore
129 129
130 #endif // EventSource_h 130 #endif // EventSource_h
OLDNEW
« no previous file with comments | « Source/core/loader/TextResourceDecoderBuilder.cpp ('k') | Source/core/workers/WorkerScriptLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698