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

Unified Diff: cloud_print/gcp20/prototype/dns_sd_server.h

Issue 1540213002: Switch to standard integer types in cloud_print/. (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 | « cloud_print/gcp20/prototype/dns_response_builder.cc ('k') | cloud_print/gcp20/prototype/dns_sd_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/gcp20/prototype/dns_sd_server.h
diff --git a/cloud_print/gcp20/prototype/dns_sd_server.h b/cloud_print/gcp20/prototype/dns_sd_server.h
index dc8683fc0a3d12a09bf185cdb17f11819536fe72..c154c2c2e64b1c6f82587db653e6bb129028895c 100644
--- a/cloud_print/gcp20/prototype/dns_sd_server.h
+++ b/cloud_print/gcp20/prototype/dns_sd_server.h
@@ -5,10 +5,12 @@
#ifndef CLOUD_PRINT_GCP20_PROTOTYPE_DNS_SD_SERVER_H_
#define CLOUD_PRINT_GCP20_PROTOTYPE_DNS_SD_SERVER_H_
+#include <stdint.h>
+
#include <string>
#include <vector>
-#include "base/basictypes.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "cloud_print/gcp20/prototype/service_parameters.h"
@@ -38,7 +40,7 @@ class DnsSdServer : public base::SupportsWeakPtr<DnsSdServer> {
// Starts the server. Returns |true| if server works. Also sends
// announcement.
bool Start(const ServiceParameters& serv_params,
- uint32 full_ttl,
+ uint32_t full_ttl,
const std::vector<std::string>& metadata) WARN_UNUSED_RESULT;
// Sends announcement if server works.
@@ -58,7 +60,7 @@ class DnsSdServer : public base::SupportsWeakPtr<DnsSdServer> {
bool CreateSocket();
// Processes single query.
- void ProccessQuery(uint32 current_ttl,
+ void ProccessQuery(uint32_t current_ttl,
const DnsQueryRecord& query,
DnsResponseBuilder* builder) const;
@@ -72,11 +74,11 @@ class DnsSdServer : public base::SupportsWeakPtr<DnsSdServer> {
void OnDatagramReceived();
// Sends announcement.
- void SendAnnouncement(uint32 ttl);
+ void SendAnnouncement(uint32_t ttl);
// Calculates and returns current TTL (with accordance to last send
// announcement time.
- uint32 GetCurrentTLL() const;
+ uint32_t GetCurrentTLL() const;
// Stores socket to multicast address.
scoped_ptr<net::UDPServerSocket> socket_;
@@ -100,7 +102,7 @@ class DnsSdServer : public base::SupportsWeakPtr<DnsSdServer> {
std::vector<std::string> metadata_;
// TTL for announcements
- uint32 full_ttl_;
+ uint32_t full_ttl_;
DISALLOW_COPY_AND_ASSIGN(DnsSdServer);
};
« no previous file with comments | « cloud_print/gcp20/prototype/dns_response_builder.cc ('k') | cloud_print/gcp20/prototype/dns_sd_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698