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

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

Issue 1274063003: [Loader] Make ThreadableLoader non-RefCounted and be managed by OwnPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 4 years, 9 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 23 matching lines...) Expand all
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698