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

Side by Side Diff: net/url_request/url_request_throttler_entry.h

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_
6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // collected. 90 // collected.
91 bool IsEntryOutdated() const; 91 bool IsEntryOutdated() const;
92 92
93 // Causes this entry to never reject requests due to back-off. 93 // Causes this entry to never reject requests due to back-off.
94 void DisableBackoffThrottling(); 94 void DisableBackoffThrottling();
95 95
96 // Causes this entry to NULL its manager pointer. 96 // Causes this entry to NULL its manager pointer.
97 void DetachManager(); 97 void DetachManager();
98 98
99 // Implementation of URLRequestThrottlerEntryInterface. 99 // Implementation of URLRequestThrottlerEntryInterface.
100 virtual bool ShouldRejectRequest(int load_flags) const; 100 virtual bool ShouldRejectRequest(int load_flags) const OVERRIDE;
101 virtual int64 ReserveSendingTimeForNextRequest( 101 virtual int64 ReserveSendingTimeForNextRequest(
102 const base::TimeTicks& earliest_time); 102 const base::TimeTicks& earliest_time) OVERRIDE;
103 virtual base::TimeTicks GetExponentialBackoffReleaseTime() const; 103 virtual base::TimeTicks GetExponentialBackoffReleaseTime() const OVERRIDE;
104 virtual void UpdateWithResponse( 104 virtual void UpdateWithResponse(
105 const std::string& host, 105 const std::string& host,
106 const URLRequestThrottlerHeaderInterface* response); 106 const URLRequestThrottlerHeaderInterface* response) OVERRIDE;
107 virtual void ReceivedContentWasMalformed(int response_code); 107 virtual void ReceivedContentWasMalformed(int response_code) OVERRIDE;
108 108
109 protected: 109 protected:
110 virtual ~URLRequestThrottlerEntry(); 110 virtual ~URLRequestThrottlerEntry();
111 111
112 void Initialize(); 112 void Initialize();
113 113
114 // Returns true if the given response code is considered an error for 114 // Returns true if the given response code is considered an error for
115 // throttling purposes. 115 // throttling purposes.
116 bool IsConsideredError(int response_code); 116 bool IsConsideredError(int response_code);
117 117
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 std::string url_id_; 187 std::string url_id_;
188 188
189 BoundNetLog net_log_; 189 BoundNetLog net_log_;
190 190
191 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerEntry); 191 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerEntry);
192 }; 192 };
193 193
194 } // namespace net 194 } // namespace net
195 195
196 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_ 196 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_ENTRY_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_test_job.h ('k') | net/url_request/url_request_throttler_header_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698