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 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_LOOKUP_REQUEST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_LOOKUP_REQUEST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_LOOKUP_REQUEST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_LOOKUP_REQUEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "net/base/address_list.h" | 12 #include "net/base/address_list.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "net/dns/host_resolver.h" | 14 #include "net/dns/host_resolver.h" |
| 15 #include "net/log/net_log_with_source.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 template <class T> | 19 template <class T> |
19 class PepperLookupRequest { | 20 class PepperLookupRequest { |
20 public: | 21 public: |
21 typedef base::Callback<void(int, const net::AddressList&, const T&)> | 22 typedef base::Callback<void(int, const net::AddressList&, const T&)> |
22 LookupRequestCallback; | 23 LookupRequestCallback; |
23 | 24 |
24 // Takes ownership over |bound_info|. |bound_info| will be passed to | 25 // Takes ownership over |bound_info|. |bound_info| will be passed to |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 LookupRequestCallback callback_; | 59 LookupRequestCallback callback_; |
59 | 60 |
60 net::AddressList addresses_; | 61 net::AddressList addresses_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(PepperLookupRequest); | 63 DISALLOW_COPY_AND_ASSIGN(PepperLookupRequest); |
63 }; | 64 }; |
64 | 65 |
65 } // namespace content | 66 } // namespace content |
66 | 67 |
67 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_LOOKUP_REQUEST_H_ | 68 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_LOOKUP_REQUEST_H_ |
OLD | NEW |