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

Unified Diff: net/tools/flip_server/output_ordering.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/flip_server/mem_cache.h ('k') | net/tools/flip_server/output_ordering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/output_ordering.h
diff --git a/net/tools/flip_server/output_ordering.h b/net/tools/flip_server/output_ordering.h
index 82cbfd24c941a6c562f34ba5d194995250a21275..364146037d53eea22a74c778c9c0dad2ce99c5e8 100644
--- a/net/tools/flip_server/output_ordering.h
+++ b/net/tools/flip_server/output_ordering.h
@@ -5,11 +5,12 @@
#ifndef NET_TOOLS_FLIP_SERVER_OUTPUT_ORDERING_H_
#define NET_TOOLS_FLIP_SERVER_OUTPUT_ORDERING_H_
+#include <stdint.h>
+
#include <list>
#include <map>
#include <string>
-#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "net/tools/epoll_server/epoll_server.h"
#include "net/tools/flip_server/constants.h"
@@ -22,7 +23,7 @@ class SMConnectionInterface;
class OutputOrdering {
public:
typedef std::list<MemCacheIter> PriorityRing;
- typedef std::map<uint32, PriorityRing> PriorityMap;
+ typedef std::map<uint32_t, PriorityRing> PriorityMap;
struct PriorityMapPointer {
PriorityMapPointer();
@@ -33,20 +34,20 @@ class OutputOrdering {
EpollServer::AlarmRegToken alarm_token;
};
- typedef std::map<uint32, PriorityMapPointer> StreamIdToPriorityMap;
+ typedef std::map<uint32_t, PriorityMapPointer> StreamIdToPriorityMap;
StreamIdToPriorityMap stream_ids_;
PriorityMap priority_map_;
PriorityRing first_data_senders_;
- uint32 first_data_senders_threshold_; // when you've passed this, you're no
- // longer a first_data_sender...
+ uint32_t first_data_senders_threshold_; // when you've passed this, you're no
+ // longer a first_data_sender...
SMConnectionInterface* connection_;
EpollServer* epoll_server_;
explicit OutputOrdering(SMConnectionInterface* connection);
~OutputOrdering();
void Reset();
- bool ExistsInPriorityMaps(uint32 stream_id) const;
+ bool ExistsInPriorityMaps(uint32_t stream_id) const;
struct BeginOutputtingAlarm : public EpollAlarmCallbackInterface {
public:
@@ -56,7 +57,7 @@ class OutputOrdering {
~BeginOutputtingAlarm() override;
// EpollAlarmCallbackInterface:
- int64 OnAlarm() override;
+ int64_t OnAlarm() override;
void OnRegistration(const EpollServer::AlarmRegToken& tok,
EpollServer* eps) override;
void OnUnregistration() override;
@@ -73,7 +74,7 @@ class OutputOrdering {
void AddToOutputOrder(const MemCacheIter& mci);
void SpliceToPriorityRing(PriorityRing::iterator pri);
MemCacheIter* GetIter();
- void RemoveStreamId(uint32 stream_id);
+ void RemoveStreamId(uint32_t stream_id);
static double server_think_time_in_s() { return server_think_time_in_s_; }
static void set_server_think_time_in_s(double value) {
« no previous file with comments | « net/tools/flip_server/mem_cache.h ('k') | net/tools/flip_server/output_ordering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698