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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_lookup_request.h

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 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 (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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698