| 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" |
| 6 |
| 5 #include <algorithm> | 7 #include <algorithm> |
| 6 #include <cstdio> | 8 #include <cstdio> |
| 7 | 9 |
| 8 #include "net/proxy/proxy_resolver_v8.h" | |
| 9 | |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/string_tokenizer.h" | 13 #include "base/string_tokenizer.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "googleurl/src/url_canon.h" | 18 #include "googleurl/src/url_canon.h" |
| 19 #include "net/base/host_cache.h" | 19 #include "net/base/host_cache.h" |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 | 795 |
| 796 // Try parsing the PAC script. | 796 // Try parsing the PAC script. |
| 797 scoped_ptr<Context> context(new Context(js_bindings_.get())); | 797 scoped_ptr<Context> context(new Context(js_bindings_.get())); |
| 798 int rv = context->InitV8(script_data); | 798 int rv = context->InitV8(script_data); |
| 799 if (rv == OK) | 799 if (rv == OK) |
| 800 context_.reset(context.release()); | 800 context_.reset(context.release()); |
| 801 return rv; | 801 return rv; |
| 802 } | 802 } |
| 803 | 803 |
| 804 } // namespace net | 804 } // namespace net |
| OLD | NEW |