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

Side by Side Diff: chromeos/network/dhcp_proxy_script_fetcher_chromeos.h

Issue 816973003: Fix WeakPtrFactory members in chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | chromeos/network/network_sms_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_CHROMEOS_H_ 5 #ifndef CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_CHROMEOS_H_
6 #define CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_CHROMEOS_H_ 6 #define CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_CHROMEOS_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 26 matching lines...) Expand all
37 virtual std::string GetFetcherName() const override; 37 virtual std::string GetFetcherName() const override;
38 38
39 private: 39 private:
40 void ContinueFetch(base::string16* utf16_text, 40 void ContinueFetch(base::string16* utf16_text,
41 net::CompletionCallback callback, 41 net::CompletionCallback callback,
42 std::string pac_url); 42 std::string pac_url);
43 43
44 net::URLRequestContext* url_request_context_; // Weak ptr 44 net::URLRequestContext* url_request_context_; // Weak ptr
45 scoped_ptr<net::ProxyScriptFetcher> proxy_script_fetcher_; 45 scoped_ptr<net::ProxyScriptFetcher> proxy_script_fetcher_;
46 scoped_refptr<base::MessageLoopProxy> network_handler_message_loop_; 46 scoped_refptr<base::MessageLoopProxy> network_handler_message_loop_;
47 base::WeakPtrFactory<DhcpProxyScriptFetcherChromeos> weak_ptr_factory_;
48 47
49 GURL pac_url_; 48 GURL pac_url_;
50 49
50 base::WeakPtrFactory<DhcpProxyScriptFetcherChromeos> weak_ptr_factory_;
51
51 DISALLOW_COPY_AND_ASSIGN(DhcpProxyScriptFetcherChromeos); 52 DISALLOW_COPY_AND_ASSIGN(DhcpProxyScriptFetcherChromeos);
52 }; 53 };
53 54
54 } // namespace chromeos 55 } // namespace chromeos
55 56
56 #endif // CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_CHROMEOS_H_ 57 #endif // CHROMEOS_NETWORK_DHCP_PROXY_SCRIPT_FETCHER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/network_sms_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698