| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef NET_PROXY_PROXY_RESOLVER_JS_BINDINGS_H_ | 5 #ifndef NET_PROXY_PROXY_RESOLVER_JS_BINDINGS_H_ |
| 6 #define NET_PROXY_PROXY_RESOLVER_JS_BINDINGS_H_ | 6 #define NET_PROXY_PROXY_RESOLVER_JS_BINDINGS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/string16.h" | 11 #include "base/string16.h" |
| 12 #include "net/base/net_api.h" | 12 #include "net/base/net_export.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 class HostResolver; | 16 class HostResolver; |
| 17 class NetLog; | 17 class NetLog; |
| 18 class ProxyResolverErrorObserver; | 18 class ProxyResolverErrorObserver; |
| 19 struct ProxyResolverRequestContext; | 19 struct ProxyResolverRequestContext; |
| 20 class SyncHostResolver; | 20 class SyncHostResolver; |
| 21 | 21 |
| 22 // Interface for the javascript bindings. | 22 // Interface for the javascript bindings. |
| 23 class NET_TEST ProxyResolverJSBindings { | 23 class NET_EXPORT_PRIVATE ProxyResolverJSBindings { |
| 24 public: | 24 public: |
| 25 ProxyResolverJSBindings() : current_request_context_(NULL) {} | 25 ProxyResolverJSBindings() : current_request_context_(NULL) {} |
| 26 | 26 |
| 27 virtual ~ProxyResolverJSBindings() {} | 27 virtual ~ProxyResolverJSBindings() {} |
| 28 | 28 |
| 29 // Handler for "alert(message)" | 29 // Handler for "alert(message)" |
| 30 virtual void Alert(const string16& message) = 0; | 30 virtual void Alert(const string16& message) = 0; |
| 31 | 31 |
| 32 // Handler for "myIpAddress()". Returns true on success and fills | 32 // Handler for "myIpAddress()". Returns true on success and fills |
| 33 // |*first_ip_address| with the result. | 33 // |*first_ip_address| with the result. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 return current_request_context_; | 84 return current_request_context_; |
| 85 } | 85 } |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 ProxyResolverRequestContext* current_request_context_; | 88 ProxyResolverRequestContext* current_request_context_; |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace net | 91 } // namespace net |
| 92 | 92 |
| 93 #endif // NET_PROXY_PROXY_RESOLVER_JS_BINDINGS_H_ | 93 #endif // NET_PROXY_PROXY_RESOLVER_JS_BINDINGS_H_ |
| OLD | NEW |