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

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

Issue 2265873003: binding: Moves hasPendingActivity from ActiveScriptWrappable to ScriptWrappable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 4 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ExecutionContext* getExecutionContext() const override; 80 ExecutionContext* getExecutionContext() const override;
81 81
82 // ActiveDOMObject 82 // ActiveDOMObject
83 // 83 //
84 // Note: suspend() is noop since ScopedPageLoadDeferrer calls 84 // Note: suspend() is noop since ScopedPageLoadDeferrer calls
85 // Page::setDefersLoading() and it defers delivery of events from the 85 // Page::setDefersLoading() and it defers delivery of events from the
86 // loader, and therefore the methods of this class for receiving 86 // loader, and therefore the methods of this class for receiving
87 // asynchronous events from the loader won't be invoked. 87 // asynchronous events from the loader won't be invoked.
88 void stop() override; 88 void stop() override;
89 89
90 // ActiveScriptWrappable 90 // ScriptWrappable
91 bool hasPendingActivity() const final; 91 bool hasPendingActivity() const final;
92 92
93 DECLARE_VIRTUAL_TRACE(); 93 DECLARE_VIRTUAL_TRACE();
94 94
95 private: 95 private:
96 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&); 96 EventSource(ExecutionContext*, const KURL&, const EventSourceInit&);
97 97
98 void didReceiveResponse(unsigned long, const ResourceResponse&, std::unique_ ptr<WebDataConsumerHandle>) override; 98 void didReceiveResponse(unsigned long, const ResourceResponse&, std::unique_ ptr<WebDataConsumerHandle>) override;
99 void didReceiveData(const char*, unsigned) override; 99 void didReceiveData(const char*, unsigned) override;
100 void didFinishLoading(unsigned long, double) override; 100 void didFinishLoading(unsigned long, double) override;
(...skipping 24 matching lines...) Expand all
125 Member<ThreadableLoader> m_loader; 125 Member<ThreadableLoader> m_loader;
126 Timer<EventSource> m_connectTimer; 126 Timer<EventSource> m_connectTimer;
127 127
128 unsigned long long m_reconnectDelay; 128 unsigned long long m_reconnectDelay;
129 String m_eventStreamOrigin; 129 String m_eventStreamOrigin;
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif // EventSource_h 134 #endif // EventSource_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.h ('k') | third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698