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

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

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_DNS_DNS_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_DNS_DNS_API_H_
6 #define EXTENSIONS_BROWSER_API_DNS_DNS_API_H_ 6 #define EXTENSIONS_BROWSER_API_DNS_DNS_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "extensions/browser/extension_function.h" 10 #include "extensions/browser/extension_function.h"
(...skipping 10 matching lines...) Expand all
21 class DnsResolveFunction : public AsyncExtensionFunction { 21 class DnsResolveFunction : public AsyncExtensionFunction {
22 public: 22 public:
23 DECLARE_EXTENSION_FUNCTION("dns.resolve", DNS_RESOLVE) 23 DECLARE_EXTENSION_FUNCTION("dns.resolve", DNS_RESOLVE)
24 24
25 DnsResolveFunction(); 25 DnsResolveFunction();
26 26
27 protected: 27 protected:
28 virtual ~DnsResolveFunction(); 28 virtual ~DnsResolveFunction();
29 29
30 // ExtensionFunction: 30 // ExtensionFunction:
31 virtual bool RunAsync() OVERRIDE; 31 virtual bool RunAsync() override;
32 32
33 void WorkOnIOThread(); 33 void WorkOnIOThread();
34 void RespondOnUIThread(); 34 void RespondOnUIThread();
35 35
36 private: 36 private:
37 void OnLookupFinished(int result); 37 void OnLookupFinished(int result);
38 38
39 std::string hostname_; 39 std::string hostname_;
40 40
41 // Not owned. 41 // Not owned.
42 content::ResourceContext* resource_context_; 42 content::ResourceContext* resource_context_;
43 43
44 bool response_; // The value sent in SendResponse(). 44 bool response_; // The value sent in SendResponse().
45 45
46 scoped_ptr<net::HostResolver::RequestHandle> request_handle_; 46 scoped_ptr<net::HostResolver::RequestHandle> request_handle_;
47 scoped_ptr<net::AddressList> addresses_; 47 scoped_ptr<net::AddressList> addresses_;
48 }; 48 };
49 49
50 } // namespace extensions 50 } // namespace extensions
51 51
52 #endif // EXTENSIONS_BROWSER_API_DNS_DNS_API_H_ 52 #endif // EXTENSIONS_BROWSER_API_DNS_DNS_API_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/device_permissions_manager.h ('k') | extensions/browser/api/dns/dns_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698