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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/page/PagePopupController.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 namespace blink { 44 namespace blink {
45 45
46 class Dictionary; 46 class Dictionary;
47 class ExceptionState; 47 class ExceptionState;
48 class MessageEvent; 48 class MessageEvent;
49 class ResourceResponse; 49 class ResourceResponse;
50 class TextResourceDecoder; 50 class TextResourceDecoder;
51 class ThreadableLoader; 51 class ThreadableLoader;
52 52
53 class EventSource FINAL : public RefCountedWillBeGarbageCollectedFinalized<Event Source>, public EventTargetWithInlineData, private ThreadableLoaderClient, publi c ActiveDOMObject { 53 class EventSource FINAL : public RefCountedWillBeGarbageCollectedFinalized<Event Source>, public EventTargetWithInlineData, private ThreadableLoaderClient, publi c ActiveDOMObject {
54 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 54 DEFINE_WRAPPERTYPEINFO();
55 REFCOUNTED_EVENT_TARGET(EventSource); 55 REFCOUNTED_EVENT_TARGET(EventSource);
56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(EventSource); 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(EventSource);
57 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Vector<UChar> m_data; 125 Vector<UChar> m_data;
125 AtomicString m_currentlyParsedEventId; 126 AtomicString m_currentlyParsedEventId;
126 AtomicString m_lastEventId; 127 AtomicString m_lastEventId;
127 unsigned long long m_reconnectDelay; 128 unsigned long long m_reconnectDelay;
128 String m_eventStreamOrigin; 129 String m_eventStreamOrigin;
129 }; 130 };
130 131
131 } // namespace blink 132 } // namespace blink
132 133
133 #endif // EventSource_h 134 #endif // EventSource_h
OLDNEW
« no previous file with comments | « Source/core/loader/appcache/ApplicationCache.h ('k') | Source/core/page/PagePopupController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698