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

Side by Side Diff: third_party/WebKit/Source/modules/eventsource/EventSource.cpp

Issue 2572603002: ABANDONED CL: Rename readyState() to getReadyState(). (Closed)
Patch Set: Created 4 years 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 * Copyright (C) 2011, Code Aurora Forum. All rights reserved. 4 * Copyright (C) 2011, Code Aurora Forum. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 String EventSource::url() const { 205 String EventSource::url() const {
206 return m_url.getString(); 206 return m_url.getString();
207 } 207 }
208 208
209 bool EventSource::withCredentials() const { 209 bool EventSource::withCredentials() const {
210 return m_withCredentials; 210 return m_withCredentials;
211 } 211 }
212 212
213 EventSource::State EventSource::readyState() const { 213 EventSource::State EventSource::getReadyState() const {
214 return m_state; 214 return m_state;
215 } 215 }
216 216
217 void EventSource::close() { 217 void EventSource::close() {
218 if (m_state == kClosed) { 218 if (m_state == kClosed) {
219 DCHECK(!m_loader); 219 DCHECK(!m_loader);
220 return; 220 return;
221 } 221 }
222 if (m_parser) 222 if (m_parser)
223 m_parser->stop(); 223 m_parser->stop();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 DEFINE_TRACE(EventSource) { 379 DEFINE_TRACE(EventSource) {
380 visitor->trace(m_parser); 380 visitor->trace(m_parser);
381 visitor->trace(m_loader); 381 visitor->trace(m_loader);
382 EventTargetWithInlineData::trace(visitor); 382 EventTargetWithInlineData::trace(visitor);
383 ActiveDOMObject::trace(visitor); 383 ActiveDOMObject::trace(visitor);
384 EventSourceParser::Client::trace(visitor); 384 EventSourceParser::Client::trace(visitor);
385 } 385 }
386 386
387 } // namespace blink 387 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698