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

Unified Diff: chrome/browser/net/referrer.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/browser/net/quota_policy_channel_id_store.cc ('k') | chrome/browser/net/referrer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/referrer.h
diff --git a/chrome/browser/net/referrer.h b/chrome/browser/net/referrer.h
index fb5d6d2d60c51833e683d8c41c5f19fdd1a83d13..27dd7865cc52dd30140ea15746c9e2c841d3e572 100644
--- a/chrome/browser/net/referrer.h
+++ b/chrome/browser/net/referrer.h
@@ -17,7 +17,9 @@
#include <map>
-#include "base/basictypes.h"
+#include <stdint.h>
+
+#include "base/macros.h"
#include "base/time/time.h"
#include "net/base/host_port_pair.h"
#include "url/gurl.h"
@@ -51,13 +53,13 @@ class ReferrerValue {
// of our associated referrer.)
void ReferrerWasObserved();
- int64 navigation_count() const { return navigation_count_; }
+ int64_t navigation_count() const { return navigation_count_; }
double subresource_use_rate() const { return subresource_use_rate_; }
- int64 preconnection_count() const { return preconnection_count_; }
+ int64_t preconnection_count() const { return preconnection_count_; }
void IncrementPreconnectionCount() { ++preconnection_count_; }
- int64 preresolution_count() const { return preresolution_count_; }
+ int64_t preresolution_count() const { return preresolution_count_; }
void preresolution_increment() { ++preresolution_count_; }
// Reduce the subresource_use_rate_ by the supplied factor, and return true
@@ -68,15 +70,15 @@ class ReferrerValue {
const base::Time birth_time_;
// The number of times this item was navigated to with the fixed referrer.
- int64 navigation_count_;
+ int64_t navigation_count_;
// The number of times this item was preconnected as a consequence of its
// referrer.
- int64 preconnection_count_;
+ int64_t preconnection_count_;
// The number of times this item was pre-resolved (via DNS) as a consequence
// of its referrer.
- int64 preresolution_count_;
+ int64_t preresolution_count_;
// A smoothed estimate of the expected number of connections that will be made
// to this subresource.
@@ -102,7 +104,7 @@ class Referrer : public SubresourceMap {
public:
Referrer();
void IncrementUseCount() { ++use_count_; }
- int64 use_count() const { return use_count_; }
+ int64_t use_count() const { return use_count_; }
// Add the indicated url to the list that are resolved via DNS when the user
// navigates to this referrer. Note that if the list is long, an entry may be
@@ -129,7 +131,7 @@ class Referrer : public SubresourceMap {
// The number of times this referer had its subresources scanned for possible
// preconnection or DNS preresolution.
- int64 use_count_;
+ int64_t use_count_;
// We put these into a std::map<>, so we need copy constructors.
// DISALLOW_COPY_AND_ASSIGN(Referrer);
« no previous file with comments | « chrome/browser/net/quota_policy_channel_id_store.cc ('k') | chrome/browser/net/referrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698