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

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

Issue 6538061: Removing AccessLog class. This is a partial revert of yzshen's r74872. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/url_request/url_request_throttler_manager.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_MANAGER_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_
6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // This keeps track of how many requests have been made. Used with 95 // This keeps track of how many requests have been made. Used with
96 // GarbageCollectEntries. 96 // GarbageCollectEntries.
97 unsigned int requests_since_last_gc_; 97 unsigned int requests_since_last_gc_;
98 98
99 mutable scoped_ptr<GURL::Replacements> url_id_replacements_; 99 mutable scoped_ptr<GURL::Replacements> url_id_replacements_;
100 100
101 // Whether we would like to reject outgoing HTTP requests during the back-off 101 // Whether we would like to reject outgoing HTTP requests during the back-off
102 // period. 102 // period.
103 bool enforce_throttling_; 103 bool enforce_throttling_;
104 104
105 // Whether to record threads that have accessed the URLRequestThrottlerManager
106 // singleton object.
107 // TODO(yzshen): It is used for diagnostic purpose and should be removed once
108 // we figure out crbug.com/71721
109 bool record_access_log_;
110
111 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager); 105 DISALLOW_COPY_AND_ASSIGN(URLRequestThrottlerManager);
112 }; 106 };
113 107
114 } // namespace net 108 } // namespace net
115 109
116 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_ 110 #endif // NET_URL_REQUEST_URL_REQUEST_THROTTLER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_throttler_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698