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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const AtomicString& interfaceName() const override; 85 const AtomicString& interfaceName() const override;
86 ExecutionContext* getExecutionContext() const override; 86 ExecutionContext* getExecutionContext() const override;
87 87
88 // ContextLifecycleObserver 88 // ContextLifecycleObserver
89 // 89 //
90 // Note: We don't need to inherit from SuspendableObject since 90 // Note: We don't need to inherit from SuspendableObject since
91 // ScopedPageLoadDeferrer calls Page::setDefersLoading() and 91 // ScopedPageLoadDeferrer calls Page::setDefersLoading() and
92 // it defers delivery of events from the loader, and therefore 92 // it defers delivery of events from the loader, and therefore
93 // the methods of this class for receiving asynchronous events 93 // the methods of this class for receiving asynchronous events
94 // from the loader won't be invoked. 94 // from the loader won't be invoked.
95 void contextDestroyed() override; 95 void contextDestroyed(ExecutionContext*) override;
96 96
97 // ScriptWrappable 97 // ScriptWrappable
98 bool hasPendingActivity() const final; 98 bool hasPendingActivity() const final;
99 99
100 DECLARE_VIRTUAL_TRACE(); 100 DECLARE_VIRTUAL_TRACE();
101 101
102 private: 102 private:
103 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&); 103 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&);
104 104
105 void didReceiveResponse(unsigned long, 105 void didReceiveResponse(unsigned long,
(...skipping 30 matching lines...) Expand all
136 Member<ThreadableLoader> m_loader; 136 Member<ThreadableLoader> m_loader;
137 Timer<EventSource> m_connectTimer; 137 Timer<EventSource> m_connectTimer;
138 138
139 unsigned long long m_reconnectDelay; 139 unsigned long long m_reconnectDelay;
140 String m_eventStreamOrigin; 140 String m_eventStreamOrigin;
141 }; 141 };
142 142
143 } // namespace blink 143 } // namespace blink
144 144
145 #endif // EventSource_h 145 #endif // EventSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698