| OLD | NEW |
| 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 #include "chrome/browser/extensions/api/dns/dns_api.h" | 5 #include "chrome/browser/extensions/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 "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/io_thread.h" | 10 #include "chrome/browser/io_thread.h" |
| 11 #include "chrome/common/extensions/api/experimental.dns.h" | 11 #include "chrome/common/extensions/api/experimental_dns.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 #include "net/base/host_port_pair.h" | 13 #include "net/base/host_port_pair.h" |
| 14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 | 15 |
| 16 using content::BrowserThread; | 16 using content::BrowserThread; |
| 17 using extensions::api::experimental_dns::ResolveCallbackResolveInfo; | 17 using extensions::api::experimental_dns::ResolveCallbackResolveInfo; |
| 18 | 18 |
| 19 namespace Resolve = extensions::api::experimental_dns::Resolve; | 19 namespace Resolve = extensions::api::experimental_dns::Resolve; |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 bool post_task_result = BrowserThread::PostTask( | 105 bool post_task_result = BrowserThread::PostTask( |
| 106 BrowserThread::UI, FROM_HERE, | 106 BrowserThread::UI, FROM_HERE, |
| 107 base::Bind(&DnsResolveFunction::RespondOnUIThread, this)); | 107 base::Bind(&DnsResolveFunction::RespondOnUIThread, this)); |
| 108 DCHECK(post_task_result); | 108 DCHECK(post_task_result); |
| 109 | 109 |
| 110 Release(); // Added in WorkOnIOThread(). | 110 Release(); // Added in WorkOnIOThread(). |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace extensions | 113 } // namespace extensions |
| OLD | NEW |