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

Side by Side Diff: chrome/browser/extensions/api/dns/dns_api.h

Issue 9600050: Add IDL capability to json_schema_compiler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Set 1 Created 8 years, 9 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) 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/extensions/extension_function.h" 11 #include "chrome/browser/extensions/extension_function.h"
12 #include "chrome/browser/io_thread.h" 12 #include "chrome/browser/io_thread.h"
13 #include "net/base/address_list.h" 13 #include "net/base/address_list.h"
14 #include "net/base/capturing_net_log.h" 14 #include "net/base/capturing_net_log.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 #include "net/base/host_resolver.h" 16 #include "net/base/host_resolver.h"
17 17
18 class IOThread; 18 class IOThread;
19 19
20 namespace extensions { 20 namespace extensions {
21 21
22 extern const char kAddressKey[];
23 extern const char kResultCodeKey[];
24
25 class DNSResolveFunction : public AsyncExtensionFunction { 22 class DNSResolveFunction : public AsyncExtensionFunction {
26 public: 23 public:
27 DNSResolveFunction(); 24 DNSResolveFunction();
28 virtual ~DNSResolveFunction(); 25 virtual ~DNSResolveFunction();
29 26
30 virtual bool RunImpl() OVERRIDE; 27 virtual bool RunImpl() OVERRIDE;
31 28
32 // See below. Caller retains ownership. 29 // See below. Caller retains ownership.
33 static void set_host_resolver_for_testing( 30 static void set_host_resolver_for_testing(
34 net::HostResolver* host_resolver_for_testing); 31 net::HostResolver* host_resolver_for_testing);
(...skipping 22 matching lines...) Expand all
57 scoped_ptr<net::AddressList> addresses_; 54 scoped_ptr<net::AddressList> addresses_;
58 55
59 void OnLookupFinished(int result); 56 void OnLookupFinished(int result);
60 57
61 DECLARE_EXTENSION_FUNCTION_NAME("experimental.dns.resolve") 58 DECLARE_EXTENSION_FUNCTION_NAME("experimental.dns.resolve")
62 }; 59 };
63 60
64 } // namespace extensions 61 } // namespace extensions
65 62
66 #endif // CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_ 63 #endif // CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698