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

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

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/appcache/ApplicationCache.h ('k') | Source/core/svg/SVGElementInstance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class Dictionary; 47 class Dictionary;
48 class ExceptionState; 48 class ExceptionState;
49 class MessageEvent; 49 class MessageEvent;
50 class ResourceResponse; 50 class ResourceResponse;
51 class TextResourceDecoder; 51 class TextResourceDecoder;
52 class ThreadableLoader; 52 class ThreadableLoader;
53 53
54 class EventSource FINAL : public RefCountedWillBeRefCountedGarbageCollected<Even tSource>, public ScriptWrappable, public EventTargetWithInlineData, private Thre adableLoaderClient, public ActiveDOMObject { 54 class EventSource FINAL : public RefCountedWillBeRefCountedGarbageCollected<Even tSource>, public ScriptWrappable, public EventTargetWithInlineData, private Thre adableLoaderClient, public ActiveDOMObject {
55 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 55 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
56 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<E ventSource>); 56 REFCOUNTED_EVENT_TARGET(EventSource);
57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(EventSource);
57 public: 58 public:
58 static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const S tring& url, const Dictionary&, ExceptionState&); 59 static PassRefPtrWillBeRawPtr<EventSource> create(ExecutionContext*, const S tring& url, const Dictionary&, ExceptionState&);
59 virtual ~EventSource(); 60 virtual ~EventSource();
60 61
61 static const unsigned long long defaultReconnectDelay; 62 static const unsigned long long defaultReconnectDelay;
62 63
63 String url() const; 64 String url() const;
64 bool withCredentials() const; 65 bool withCredentials() const;
65 66
66 typedef short State; 67 typedef short State;
(...skipping 13 matching lines...) Expand all
80 virtual ExecutionContext* executionContext() const OVERRIDE; 81 virtual ExecutionContext* executionContext() const OVERRIDE;
81 82
82 // ActiveDOMObject 83 // ActiveDOMObject
83 // 84 //
84 // Note: suspend() is noop since ScopedPageLoadDeferrer calls 85 // Note: suspend() is noop since ScopedPageLoadDeferrer calls
85 // Page::setDefersLoading() and it defers delivery of events from the 86 // Page::setDefersLoading() and it defers delivery of events from the
86 // loader, and therefore the methods of this class for receiving 87 // loader, and therefore the methods of this class for receiving
87 // asynchronous events from the loader won't be invoked. 88 // asynchronous events from the loader won't be invoked.
88 virtual void stop() OVERRIDE; 89 virtual void stop() OVERRIDE;
89 90
90 void trace(Visitor*) { }
91
92 private: 91 private:
93 EventSource(ExecutionContext*, const KURL&, const Dictionary&); 92 EventSource(ExecutionContext*, const KURL&, const Dictionary&);
94 93
95 virtual void didReceiveResponse(unsigned long, const ResourceResponse&) OVER RIDE; 94 virtual void didReceiveResponse(unsigned long, const ResourceResponse&) OVER RIDE;
96 virtual void didReceiveData(const char*, int) OVERRIDE; 95 virtual void didReceiveData(const char*, int) OVERRIDE;
97 virtual void didFinishLoading(unsigned long, double) OVERRIDE; 96 virtual void didFinishLoading(unsigned long, double) OVERRIDE;
98 virtual void didFail(const ResourceError&) OVERRIDE; 97 virtual void didFail(const ResourceError&) OVERRIDE;
99 virtual void didFailAccessControlCheck(const ResourceError&) OVERRIDE; 98 virtual void didFailAccessControlCheck(const ResourceError&) OVERRIDE;
100 virtual void didFailRedirectCheck() OVERRIDE; 99 virtual void didFailRedirectCheck() OVERRIDE;
101 100
(...skipping 22 matching lines...) Expand all
124 Vector<UChar> m_data; 123 Vector<UChar> m_data;
125 AtomicString m_currentlyParsedEventId; 124 AtomicString m_currentlyParsedEventId;
126 AtomicString m_lastEventId; 125 AtomicString m_lastEventId;
127 unsigned long long m_reconnectDelay; 126 unsigned long long m_reconnectDelay;
128 String m_eventStreamOrigin; 127 String m_eventStreamOrigin;
129 }; 128 };
130 129
131 } // namespace WebCore 130 } // namespace WebCore
132 131
133 #endif // EventSource_h 132 #endif // EventSource_h
OLDNEW
« no previous file with comments | « Source/core/loader/appcache/ApplicationCache.h ('k') | Source/core/svg/SVGElementInstance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698