Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: net/proxy/proxy_resolver_js_bindings.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698