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

Unified Diff: components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h

Issue 1543423002: Switch to standard integer types in components/policy/. (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
Index: components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h
diff --git a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h
index 9a1eb7521e3c6da9c69aebd6b21b122a6917e2f7..30fee43a0c15a3df9946b92675a5d3f8033beb6f 100644
--- a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h
+++ b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h
@@ -5,8 +5,10 @@
#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_REFRESH_SCHEDULER_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_REFRESH_SCHEDULER_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "base/cancelable_callback.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
@@ -28,14 +30,14 @@ class POLICY_EXPORT CloudPolicyRefreshScheduler
public net::NetworkChangeNotifier::IPAddressObserver {
public:
// Refresh constants.
- static const int64 kDefaultRefreshDelayMs;
- static const int64 kUnmanagedRefreshDelayMs;
- static const int64 kWithInvalidationsRefreshDelayMs;
- static const int64 kInitialErrorRetryDelayMs;
+ static const int64_t kDefaultRefreshDelayMs;
+ static const int64_t kUnmanagedRefreshDelayMs;
+ static const int64_t kWithInvalidationsRefreshDelayMs;
+ static const int64_t kInitialErrorRetryDelayMs;
// Refresh delay bounds.
- static const int64 kRefreshDelayMinMs;
- static const int64 kRefreshDelayMaxMs;
+ static const int64_t kRefreshDelayMinMs;
+ static const int64_t kRefreshDelayMaxMs;
// |client| and |store| pointers must stay valid throughout the
// lifetime of CloudPolicyRefreshScheduler.
@@ -46,10 +48,10 @@ class POLICY_EXPORT CloudPolicyRefreshScheduler
~CloudPolicyRefreshScheduler() override;
base::Time last_refresh() const { return last_refresh_; }
- int64 refresh_delay() const { return refresh_delay_ms_; }
+ int64_t refresh_delay() const { return refresh_delay_ms_; }
// Sets the refresh delay to |refresh_delay| (subject to min/max clamping).
- void SetRefreshDelay(int64 refresh_delay);
+ void SetRefreshDelay(int64_t refresh_delay);
// Requests a policy refresh to be performed soon.
void RefreshSoon();
@@ -114,10 +116,10 @@ class POLICY_EXPORT CloudPolicyRefreshScheduler
base::Time last_refresh_;
// Error retry delay in milliseconds.
- int64 error_retry_delay_ms_;
+ int64_t error_retry_delay_ms_;
// The refresh delay.
- int64 refresh_delay_ms_;
+ int64_t refresh_delay_ms_;
// Whether the invalidations service is available and receiving notifications
// of policy updates.

Powered by Google App Engine
This is Rietveld 408576698