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

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

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 #include "extensions/browser/api/dns/dns_api.h" 5 #include "extensions/browser/api/dns/dns_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "content/public/browser/browser_context.h" 9 #include "content/public/browser/browser_context.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "content/public/browser/resource_context.h" 11 #include "content/public/browser/resource_context.h"
12 #include "extensions/browser/api/dns/host_resolver_wrapper.h" 12 #include "extensions/browser/api/dns/host_resolver_wrapper.h"
13 #include "extensions/common/api/dns.h" 13 #include "extensions/common/api/dns.h"
14 #include "net/base/host_port_pair.h" 14 #include "net/base/host_port_pair.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "net/log/net_log.h" 16 #include "net/log/net_log.h"
17 17
18 using content::BrowserThread; 18 using content::BrowserThread;
19 using extensions::core_api::dns::ResolveCallbackResolveInfo; 19 using extensions::api::dns::ResolveCallbackResolveInfo;
20 20
21 namespace Resolve = extensions::core_api::dns::Resolve; 21 namespace Resolve = extensions::api::dns::Resolve;
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 DnsResolveFunction::DnsResolveFunction() 25 DnsResolveFunction::DnsResolveFunction()
26 : resource_context_(NULL), 26 : resource_context_(NULL),
27 response_(false), 27 response_(false),
28 request_handle_(new net::HostResolver::RequestHandle()), 28 request_handle_(new net::HostResolver::RequestHandle()),
29 addresses_(new net::AddressList) {} 29 addresses_(new net::AddressList) {}
30 30
31 DnsResolveFunction::~DnsResolveFunction() {} 31 DnsResolveFunction::~DnsResolveFunction() {}
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool post_task_result = BrowserThread::PostTask( 94 bool post_task_result = BrowserThread::PostTask(
95 BrowserThread::UI, 95 BrowserThread::UI,
96 FROM_HERE, 96 FROM_HERE,
97 base::Bind(&DnsResolveFunction::RespondOnUIThread, this)); 97 base::Bind(&DnsResolveFunction::RespondOnUIThread, this));
98 DCHECK(post_task_result); 98 DCHECK(post_task_result);
99 99
100 Release(); // Added in WorkOnIOThread(). 100 Release(); // Added in WorkOnIOThread().
101 } 101 }
102 102
103 } // namespace extensions 103 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/diagnostics/diagnostics_api.cc ('k') | extensions/browser/api/document_scan/document_scan_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698