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

Side by Side Diff: chrome/browser/net/spdyproxy/proxy_advisor.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_NET_SPDYPROXY_PROXY_ADVISOR_H_ 5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_PROXY_ADVISOR_H_
6 #define CHROME_BROWSER_NET_SPDYPROXY_PROXY_ADVISOR_H_ 6 #define CHROME_BROWSER_NET_SPDYPROXY_PROXY_ADVISOR_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/prefs/pref_member.h" 10 #include "base/prefs/pref_member.h"
(...skipping 23 matching lines...) Expand all
34 // disabled, all in-flight requests are canceled. 34 // disabled, all in-flight requests are canceled.
35 // 35 //
36 // ProxyAdvisor instances should be created on the UI thread. 36 // ProxyAdvisor instances should be created on the UI thread.
37 class ProxyAdvisor : public net::URLRequest::Delegate { 37 class ProxyAdvisor : public net::URLRequest::Delegate {
38 public: 38 public:
39 ProxyAdvisor(PrefService* pref_service, 39 ProxyAdvisor(PrefService* pref_service,
40 net::URLRequestContextGetter* context_getter); 40 net::URLRequestContextGetter* context_getter);
41 virtual ~ProxyAdvisor(); 41 virtual ~ProxyAdvisor();
42 42
43 // net::URLRequest::Delegate callbacks. 43 // net::URLRequest::Delegate callbacks.
44 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; 44 virtual void OnResponseStarted(net::URLRequest* request) override;
45 virtual void OnReadCompleted(net::URLRequest* request, 45 virtual void OnReadCompleted(net::URLRequest* request,
46 int bytes_read) OVERRIDE; 46 int bytes_read) override;
47 47
48 // Tell the advisor that |url| is being preconnected or pre-resolved and why. 48 // Tell the advisor that |url| is being preconnected or pre-resolved and why.
49 // If |url| would be proxied (according to WouldProxyURL()), the ProxyAdvisor 49 // If |url| would be proxied (according to WouldProxyURL()), the ProxyAdvisor
50 // will send a HEAD request to the proxy, giving it an opportunity to 50 // will send a HEAD request to the proxy, giving it an opportunity to
51 // preconnect or pre-resolve hostnames prior to the browser sending actual 51 // preconnect or pre-resolve hostnames prior to the browser sending actual
52 // requests. 52 // requests.
53 // If WouldProxyURL returns a false positive, then Advise() will send an 53 // If WouldProxyURL returns a false positive, then Advise() will send an
54 // advisory HEAD request to the proxy, but |url| will be fetched by the 54 // advisory HEAD request to the proxy, but |url| will be fetched by the
55 // browser directly. 55 // browser directly.
56 // |motivation| and |is_preconnect| are used to determine a motivation string 56 // |motivation| and |is_preconnect| are used to determine a motivation string
(...skipping 20 matching lines...) Expand all
77 77
78 scoped_refptr<net::URLRequestContextGetter> context_getter_; 78 scoped_refptr<net::URLRequestContextGetter> context_getter_;
79 79
80 BooleanPrefMember proxy_pref_member_; 80 BooleanPrefMember proxy_pref_member_;
81 81
82 std::set<net::URLRequest*> inflight_requests_; 82 std::set<net::URLRequest*> inflight_requests_;
83 }; 83 };
84 84
85 #endif // CHROME_BROWSER_NET_SPDYPROXY_PROXY_ADVISOR_H_ 85 #endif // CHROME_BROWSER_NET_SPDYPROXY_PROXY_ADVISOR_H_
86 86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698