Chromium Code Reviews| 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 23 matching lines...) Expand all Loading... | |
| 34 | 34 | 
| 35 #include "core/dom/ActiveDOMObject.h" | 35 #include "core/dom/ActiveDOMObject.h" | 
| 36 #include "core/events/EventTarget.h" | 36 #include "core/events/EventTarget.h" | 
| 37 #include "core/loader/ThreadableLoader.h" | 37 #include "core/loader/ThreadableLoader.h" | 
| 38 #include "core/loader/ThreadableLoaderClient.h" | 38 #include "core/loader/ThreadableLoaderClient.h" | 
| 39 #include "core/page/EventSourceParser.h" | 39 #include "core/page/EventSourceParser.h" | 
| 40 #include "platform/Timer.h" | 40 #include "platform/Timer.h" | 
| 41 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" | 
| 42 #include "platform/weborigin/KURL.h" | 42 #include "platform/weborigin/KURL.h" | 
| 43 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" | 
| 44 #include "wtf/RefPtr.h" | 44 #include "wtf/RefPtr.h" | 
| 
 
tyoshino (SeeGerritForStatus)
2016/03/03 11:53:38
replace with OwnPtr.h?
 
hiroshige
2016/03/08 23:39:25
Done.
 
 | |
| 45 | 45 | 
| 46 namespace blink { | 46 namespace blink { | 
| 47 | 47 | 
| 48 class EventSourceInit; | 48 class EventSourceInit; | 
| 49 class ExceptionState; | 49 class ExceptionState; | 
| 50 class ResourceResponse; | 50 class ResourceResponse; | 
| 51 | 51 | 
| 52 class CORE_EXPORT EventSource final : public RefCountedGarbageCollectedEventTarg etWithInlineData<EventSource>, private ThreadableLoaderClient, public ActiveDOMO bject, public EventSourceParser::Client { | 52 class CORE_EXPORT EventSource final : public RefCountedGarbageCollectedEventTarg etWithInlineData<EventSource>, private ThreadableLoaderClient, public ActiveDOMO bject, public EventSourceParser::Client { | 
| 53 DEFINE_WRAPPERTYPEINFO(); | 53 DEFINE_WRAPPERTYPEINFO(); | 
| 54 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(EventSource); | 54 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(EventSource); | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 void networkRequestEnded(); | 109 void networkRequestEnded(); | 
| 110 void scheduleReconnect(); | 110 void scheduleReconnect(); | 
| 111 void connectTimerFired(Timer<EventSource>*); | 111 void connectTimerFired(Timer<EventSource>*); | 
| 112 void abortConnectionAttempt(); | 112 void abortConnectionAttempt(); | 
| 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 Member<EventSourceParser> m_parser; | 118 Member<EventSourceParser> m_parser; | 
| 119 RefPtr<ThreadableLoader> m_loader; | 119 OwnPtr<ThreadableLoader> m_loader; | 
| 120 Timer<EventSource> m_connectTimer; | 120 Timer<EventSource> m_connectTimer; | 
| 121 | 121 | 
| 122 unsigned long long m_reconnectDelay; | 122 unsigned long long m_reconnectDelay; | 
| 123 String m_eventStreamOrigin; | 123 String m_eventStreamOrigin; | 
| 124 }; | 124 }; | 
| 125 | 125 | 
| 126 } // namespace blink | 126 } // namespace blink | 
| 127 | 127 | 
| 128 #endif // EventSource_h | 128 #endif // EventSource_h | 
| OLD | NEW |