 Chromium Code Reviews
 Chromium Code Reviews Issue 2572603002:
  ABANDONED CL: Rename readyState() to getReadyState().  (Closed)
    
  
    Issue 2572603002:
  ABANDONED CL: Rename readyState() to getReadyState().  (Closed) 
  | OLD | NEW | 
|---|---|
| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 ExceptionState&); | 66 ExceptionState&); | 
| 67 ~EventSource() override; | 67 ~EventSource() override; | 
| 68 | 68 | 
| 69 static const unsigned long long defaultReconnectDelay; | 69 static const unsigned long long defaultReconnectDelay; | 
| 70 | 70 | 
| 71 String url() const; | 71 String url() const; | 
| 72 bool withCredentials() const; | 72 bool withCredentials() const; | 
| 73 | 73 | 
| 74 enum State : short { kConnecting = 0, kOpen = 1, kClosed = 2 }; | 74 enum State : short { kConnecting = 0, kOpen = 1, kClosed = 2 }; | 
| 75 | 75 | 
| 76 State readyState() const; | 76 State getReadyState() const; | 
| 
Łukasz Anforowicz
2016/12/12 22:43:49
This rename is probably not needed.
 | |
| 77 | 77 | 
| 78 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); | 78 DEFINE_ATTRIBUTE_EVENT_LISTENER(open); | 
| 79 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 79 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 
| 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 
| 81 | 81 | 
| 82 void close(); | 82 void close(); | 
| 83 | 83 | 
| 84 const AtomicString& interfaceName() const override; | 84 const AtomicString& interfaceName() const override; | 
| 85 ExecutionContext* getExecutionContext() const override; | 85 ExecutionContext* getExecutionContext() const override; | 
| 86 | 86 | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 Member<ThreadableLoader> m_loader; | 134 Member<ThreadableLoader> m_loader; | 
| 135 Timer<EventSource> m_connectTimer; | 135 Timer<EventSource> m_connectTimer; | 
| 136 | 136 | 
| 137 unsigned long long m_reconnectDelay; | 137 unsigned long long m_reconnectDelay; | 
| 138 String m_eventStreamOrigin; | 138 String m_eventStreamOrigin; | 
| 139 }; | 139 }; | 
| 140 | 140 | 
| 141 } // namespace blink | 141 } // namespace blink | 
| 142 | 142 | 
| 143 #endif // EventSource_h | 143 #endif // EventSource_h | 
| OLD | NEW |