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

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

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) 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 * 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "platform/weborigin/KURL.h" 44 #include "platform/weborigin/KURL.h"
45 #include "wtf/Forward.h" 45 #include "wtf/Forward.h"
46 #include <memory> 46 #include <memory>
47 47
48 namespace blink { 48 namespace blink {
49 49
50 class EventSourceInit; 50 class EventSourceInit;
51 class ExceptionState; 51 class ExceptionState;
52 class ResourceResponse; 52 class ResourceResponse;
53 53
54 class MODULES_EXPORT EventSource final : public EventTargetWithInlineData, 54 class MODULES_EXPORT EventSource final
55 private ThreadableLoaderClient, 55 : public EventTargetWithInlineData,
56 public ActiveScriptWrappable, 56 private ThreadableLoaderClient,
57 public SuspendableObject, 57 public ActiveScriptWrappable<EventSource>,
58 public EventSourceParser::Client { 58 public SuspendableObject,
59 public EventSourceParser::Client {
59 DEFINE_WRAPPERTYPEINFO(); 60 DEFINE_WRAPPERTYPEINFO();
60 USING_GARBAGE_COLLECTED_MIXIN(EventSource); 61 USING_GARBAGE_COLLECTED_MIXIN(EventSource);
61 62
62 public: 63 public:
63 static EventSource* create(ExecutionContext*, 64 static EventSource* create(ExecutionContext*,
64 const String& url, 65 const String& url,
65 const EventSourceInit&, 66 const EventSourceInit&,
66 ExceptionState&); 67 ExceptionState&);
67 ~EventSource() override; 68 ~EventSource() override;
68 69
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 Member<ThreadableLoader> m_loader; 135 Member<ThreadableLoader> m_loader;
135 Timer<EventSource> m_connectTimer; 136 Timer<EventSource> m_connectTimer;
136 137
137 unsigned long long m_reconnectDelay; 138 unsigned long long m_reconnectDelay;
138 String m_eventStreamOrigin; 139 String m_eventStreamOrigin;
139 }; 140 };
140 141
141 } // namespace blink 142 } // namespace blink
142 143
143 #endif // EventSource_h 144 #endif // EventSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698