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

Unified Diff: Source/core/page/NetworkStateNotifier.h

Issue 291203002: Adds NetInfo v3 Web API to Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@netinfo1
Patch Set: Comment typo Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/core/page/NetworkStateNotifier.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/NetworkStateNotifier.h
diff --git a/Source/core/page/NetworkStateNotifier.h b/Source/core/page/NetworkStateNotifier.h
index e60b93b64ff7636ee1e9cef386ce53ca59750f31..138aaf52dd24d29c9ce69ad0fa9bd7be9317b10b 100644
--- a/Source/core/page/NetworkStateNotifier.h
+++ b/Source/core/page/NetworkStateNotifier.h
@@ -69,8 +69,10 @@ public:
void setWebConnectionType(blink::WebConnectionType);
- // Must be called on the context's thread. An added observer must be
- // removed before its ExecutionContext is deleted.
+ // Must be called on the context's thread. An added observer must be removed
+ // before its ExecutionContext is deleted. It's possible for an observer to
+ // be called twice for the same event if it is first removed and then added
+ // during notification.
void addObserver(NetworkStateObserver*, ExecutionContext*);
void removeObserver(NetworkStateObserver*, ExecutionContext*);
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/core/page/NetworkStateNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698