client_id is accessed on different threads

This commit is contained in:
deepak1556 2016-04-19 10:01:38 +05:30
parent b8e04f4947
commit ddf962c6ea
2 changed files with 11 additions and 2 deletions

View file

@ -11,6 +11,7 @@
#include "brightray/browser/network_delegate.h"
#include "base/callback.h"
#include "base/synchronization/lock.h"
#include "base/values.h"
#include "extensions/common/url_pattern.h"
#include "net/base/net_errors.h"
@ -119,6 +120,7 @@ class AtomNetworkDelegate : public brightray::NetworkDelegate {
std::map<ResponseEvent, ResponseListenerInfo> response_listeners_;
std::map<uint64_t, net::CompletionCallback> callbacks_;
base::Lock lock_;
// Client id for devtools network emulation.
std::string client_id_;