OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/proxy/proxy_resolver_v8.h" | 5 #include "net/proxy/proxy_resolver_v8.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstdio> | 8 #include <cstdio> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
729 | 729 |
730 // static | 730 // static |
731 v8::Isolate* ProxyResolverV8::GetDefaultIsolate() { | 731 v8::Isolate* ProxyResolverV8::GetDefaultIsolate() { |
732 DCHECK(g_default_isolate_) | 732 DCHECK(g_default_isolate_) |
733 << "Must call ProxyResolverV8::RememberDefaultIsolate() first"; | 733 << "Must call ProxyResolverV8::RememberDefaultIsolate() first"; |
734 return g_default_isolate_; | 734 return g_default_isolate_; |
735 } | 735 } |
736 | 736 |
737 v8::Isolate* ProxyResolverV8::g_default_isolate_ = NULL; | 737 v8::Isolate* ProxyResolverV8::g_default_isolate_ = NULL; |
738 | 738 |
739 // static | |
740 void ProxyResolverV8::GetHeapStatistics(v8::HeapStatistics* heap_statistics) { | |
741 GetDefaultIsolate()->GetHeapStatistics(heap_statistics); | |
eroman
2013/03/05 00:40:45
I think this should be prepared to handle the case
Sven Panne
2013/03/05 07:22:39
Good point, I'll handle that case by zero-ing out
Sven Panne
2013/03/05 07:32:05
I was a bit too quick here: One can't modify HeapS
Sven Panne
2013/03/05 08:34:31
After talking to Jochen and re-thinking things aga
| |
742 } | |
743 | |
739 } // namespace net | 744 } // namespace net |
OLD | NEW |