| Index: extensions/renderer/messaging_bindings.h
|
| diff --git a/extensions/renderer/messaging_bindings.h b/extensions/renderer/messaging_bindings.h
|
| index b0e9fe780b34f3c9a6ca536c0c19fd6544a62fcf..758187e1782580526f83b37fb54613e018bc186b 100644
|
| --- a/extensions/renderer/messaging_bindings.h
|
| +++ b/extensions/renderer/messaging_bindings.h
|
| @@ -115,7 +115,17 @@ class MessagingBindings : public ObjectBackedNativeHandler {
|
| PortMap disconnected_ports_;
|
|
|
| // The next available local id for a port.
|
| - int next_local_id_ = 0;
|
| + size_t next_local_id_ = 0;
|
| +
|
| + // The number of ports created in the 'beforeunload' event handler.
|
| + size_t ports_created_in_before_unload_ = 0;
|
| +
|
| + // The number of ports created in the 'unload' event handler.
|
| + size_t ports_created_in_unload_ = 0;
|
| +
|
| + // The number of ports created during during any time that isn't in the unload
|
| + // or beforeunload handlers.
|
| + int ports_created_normal_ = 0;
|
|
|
| base::WeakPtrFactory<MessagingBindings> weak_ptr_factory_;
|
|
|
|
|