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

Unified Diff: mojo/public/cpp/bindings/interface_endpoint_client.h

Issue 2611843004: Implement throttling behavior for LocalStorage mojo messages.
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/dom_storage/local_storage_cached_area.cc ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/interface_endpoint_client.h
diff --git a/mojo/public/cpp/bindings/interface_endpoint_client.h b/mojo/public/cpp/bindings/interface_endpoint_client.h
index 6129d75bbf7511716d6a511bfaa5fa67a972b47d..88f7268eef0dd84ccb5233323fd85ef3963317e5 100644
--- a/mojo/public/cpp/bindings/interface_endpoint_client.h
+++ b/mojo/public/cpp/bindings/interface_endpoint_client.h
@@ -77,6 +77,11 @@ class MOJO_CPP_BINDINGS_EXPORT InterfaceEndpointClient
return !async_responders_.empty() || !sync_responses_.empty();
}
+ size_t pending_responder_count() const {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ return async_responders_.size();
+ }
+
AssociatedGroupController* group_controller() const {
return handle_.group_controller();
}
« no previous file with comments | « content/renderer/dom_storage/local_storage_cached_area.cc ('k') | mojo/public/cpp/bindings/interface_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698