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

Side by Side Diff: chrome/browser/net/passive_log_collector.h

Issue 5384002: net: Remove typedef net::URLRequest URLRequest; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 10 years 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) 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 CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ 5 #ifndef CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_
6 #define CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ 6 #define CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 SocketTracker(); 231 SocketTracker();
232 232
233 protected: 233 protected:
234 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); 234 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info);
235 235
236 private: 236 private:
237 DISALLOW_COPY_AND_ASSIGN(SocketTracker); 237 DISALLOW_COPY_AND_ASSIGN(SocketTracker);
238 }; 238 };
239 239
240 // Specialization of SourceTracker for handling URLRequest/SocketStream. 240 // Specialization of SourceTracker for handling net::URLRequest/SocketStream.
241 class RequestTracker : public SourceTracker { 241 class RequestTracker : public SourceTracker {
242 public: 242 public:
243 static const size_t kMaxNumSources; 243 static const size_t kMaxNumSources;
244 static const size_t kMaxGraveyardSize; 244 static const size_t kMaxGraveyardSize;
245 245
246 explicit RequestTracker(PassiveLogCollector* parent); 246 explicit RequestTracker(PassiveLogCollector* parent);
247 247
248 protected: 248 protected:
249 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); 249 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info);
250 250
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT]; 356 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT];
357 357
358 // The count of how many events have flowed through this log. Used to set the 358 // The count of how many events have flowed through this log. Used to set the
359 // "order" field on captured events. 359 // "order" field on captured events.
360 uint32 num_events_seen_; 360 uint32 num_events_seen_;
361 361
362 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector); 362 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector);
363 }; 363 };
364 364
365 #endif // CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ 365 #endif // CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698