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

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

Issue 23867002: Move dns API to dev channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding missing dns.idl file Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/dns/dns_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/extension_function.h" 10 #include "chrome/browser/extensions/extension_function.h"
11 #include "chrome/browser/io_thread.h" 11 #include "chrome/browser/io_thread.h"
12 #include "net/base/address_list.h" 12 #include "net/base/address_list.h"
13 #include "net/base/completion_callback.h" 13 #include "net/base/completion_callback.h"
14 #include "net/dns/host_resolver.h" 14 #include "net/dns/host_resolver.h"
15 15
16 class IOThread; 16 class IOThread;
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 class DnsResolveFunction : public AsyncExtensionFunction { 20 class DnsResolveFunction : public AsyncExtensionFunction {
21 public: 21 public:
22 DECLARE_EXTENSION_FUNCTION("experimental.dns.resolve", 22 DECLARE_EXTENSION_FUNCTION("dns.resolve", DNS_RESOLVE)
23 EXPERIMENTAL_DNS_RESOLVE)
24 23
25 DnsResolveFunction(); 24 DnsResolveFunction();
26 25
27 protected: 26 protected:
28 virtual ~DnsResolveFunction(); 27 virtual ~DnsResolveFunction();
29 28
30 // ExtensionFunction: 29 // ExtensionFunction:
31 virtual bool RunImpl() OVERRIDE; 30 virtual bool RunImpl() OVERRIDE;
32 31
33 void WorkOnIOThread(); 32 void WorkOnIOThread();
(...skipping 11 matching lines...) Expand all
45 // plain pointer to it here as we move from thread to thread. 44 // plain pointer to it here as we move from thread to thread.
46 IOThread* io_thread_; 45 IOThread* io_thread_;
47 46
48 scoped_ptr<net::HostResolver::RequestHandle> request_handle_; 47 scoped_ptr<net::HostResolver::RequestHandle> request_handle_;
49 scoped_ptr<net::AddressList> addresses_; 48 scoped_ptr<net::AddressList> addresses_;
50 }; 49 };
51 50
52 } // namespace extensions 51 } // namespace extensions
53 52
54 #endif // CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_ 53 #endif // CHROME_BROWSER_EXTENSIONS_API_DNS_DNS_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/dns/dns_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698