| Index: extensions/renderer/messaging_bindings.h
|
| diff --git a/extensions/renderer/messaging_bindings.h b/extensions/renderer/messaging_bindings.h
|
| index 758187e1782580526f83b37fb54613e018bc186b..6e469ed614450b53a64338b4f86bcef3e8f4c8aa 100644
|
| --- a/extensions/renderer/messaging_bindings.h
|
| +++ b/extensions/renderer/messaging_bindings.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef EXTENSIONS_RENDERER_MESSAGING_BINDINGS_H_
|
| #define EXTENSIONS_RENDERER_MESSAGING_BINDINGS_H_
|
|
|
| +#include <set>
|
| #include <string>
|
|
|
| #include "base/macros.h"
|
| @@ -71,6 +72,8 @@ class MessagingBindings : public ObjectBackedNativeHandler {
|
| // Removes the port with the given |local_id|.
|
| void RemovePortWithLocalId(int local_id);
|
|
|
| + bool DidCreatePortWithGlobalId(int global_id) const;
|
| +
|
| base::WeakPtr<MessagingBindings> GetWeakPtr();
|
|
|
| private:
|
| @@ -114,6 +117,9 @@ class MessagingBindings : public ObjectBackedNativeHandler {
|
| // initialized and any pending messages are sent, these ports are removed.
|
| PortMap disconnected_ports_;
|
|
|
| + std::set<int> created_local_port_ids_;
|
| + std::set<int> created_global_port_ids_;
|
| +
|
| // The next available local id for a port.
|
| size_t next_local_id_ = 0;
|
|
|
|
|