summaryrefslogtreecommitdiffstats
path: root/remoting/host/setup
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-22 14:49:48 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-22 22:50:51 +0000
commitc5960f3143870ec1fbb1dd7280238b324c49c694 (patch)
tree0f0acfc895b17661165ee5770c50ac006fdd33b4 /remoting/host/setup
parent89572b9c9defce673e0ec094b14a0bc9bbe9b8db (diff)
downloadchromium_src-c5960f3143870ec1fbb1dd7280238b324c49c694.zip
chromium_src-c5960f3143870ec1fbb1dd7280238b324c49c694.tar.gz
chromium_src-c5960f3143870ec1fbb1dd7280238b324c49c694.tar.bz2
Switch to standard integer types in remoting/host/.
BUG=138542 TBR=wez@chromium.org Review URL: https://codereview.chromium.org/1547473005 Cr-Commit-Position: refs/heads/master@{#366676}
Diffstat (limited to 'remoting/host/setup')
-rw-r--r--remoting/host/setup/daemon_controller.cc1
-rw-r--r--remoting/host/setup/daemon_controller.h1
-rw-r--r--remoting/host/setup/daemon_controller_delegate_linux.cc1
-rw-r--r--remoting/host/setup/daemon_controller_delegate_linux.h1
-rw-r--r--remoting/host/setup/daemon_controller_delegate_mac.h1
-rw-r--r--remoting/host/setup/daemon_controller_delegate_mac.mm1
-rw-r--r--remoting/host/setup/daemon_controller_delegate_win.cc3
-rw-r--r--remoting/host/setup/daemon_controller_delegate_win.h1
-rw-r--r--remoting/host/setup/gaia_oauth_client.h1
-rw-r--r--remoting/host/setup/host_starter.h1
-rw-r--r--remoting/host/setup/me2me_native_messaging_host.cc4
-rw-r--r--remoting/host/setup/me2me_native_messaging_host.h2
-rw-r--r--remoting/host/setup/me2me_native_messaging_host_main.cc5
-rw-r--r--remoting/host/setup/me2me_native_messaging_host_unittest.cc9
-rw-r--r--remoting/host/setup/oauth_helper_unittest.cc2
-rw-r--r--remoting/host/setup/pin_validator.cc2
-rw-r--r--remoting/host/setup/service_client.h1
-rw-r--r--remoting/host/setup/start_host.cc2
-rw-r--r--remoting/host/setup/test_util.cc1
-rw-r--r--remoting/host/setup/win/auth_code_getter.h1
20 files changed, 33 insertions, 8 deletions
diff --git a/remoting/host/setup/daemon_controller.cc b/remoting/host/setup/daemon_controller.cc
index dd413b4..34403ef 100644
--- a/remoting/host/setup/daemon_controller.cc
+++ b/remoting/host/setup/daemon_controller.cc
@@ -9,6 +9,7 @@
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "remoting/base/auto_thread.h"
#include "remoting/base/auto_thread_task_runner.h"
diff --git a/remoting/host/setup/daemon_controller.h b/remoting/host/setup/daemon_controller.h
index 9bc3b33..37f9c36 100644
--- a/remoting/host/setup/daemon_controller.h
+++ b/remoting/host/setup/daemon_controller.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/callback.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
diff --git a/remoting/host/setup/daemon_controller_delegate_linux.cc b/remoting/host/setup/daemon_controller_delegate_linux.cc
index f1c3baf..57de922 100644
--- a/remoting/host/setup/daemon_controller_delegate_linux.cc
+++ b/remoting/host/setup/daemon_controller_delegate_linux.cc
@@ -7,7 +7,6 @@
#include <unistd.h>
#include "base/base_paths.h"
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
diff --git a/remoting/host/setup/daemon_controller_delegate_linux.h b/remoting/host/setup/daemon_controller_delegate_linux.h
index 91eef1a..9bcc81c 100644
--- a/remoting/host/setup/daemon_controller_delegate_linux.h
+++ b/remoting/host/setup/daemon_controller_delegate_linux.h
@@ -5,6 +5,7 @@
#ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_
#define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_LINUX_H_
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "remoting/host/setup/daemon_controller.h"
diff --git a/remoting/host/setup/daemon_controller_delegate_mac.h b/remoting/host/setup/daemon_controller_delegate_mac.h
index e6c4a4c..7ae6c57 100644
--- a/remoting/host/setup/daemon_controller_delegate_mac.h
+++ b/remoting/host/setup/daemon_controller_delegate_mac.h
@@ -5,6 +5,7 @@
#ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_
#define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_MAC_H_
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "remoting/host/setup/daemon_controller.h"
diff --git a/remoting/host/setup/daemon_controller_delegate_mac.mm b/remoting/host/setup/daemon_controller_delegate_mac.mm
index 9821f86..aa4703c 100644
--- a/remoting/host/setup/daemon_controller_delegate_mac.mm
+++ b/remoting/host/setup/daemon_controller_delegate_mac.mm
@@ -10,7 +10,6 @@
#include <stdio.h>
#include <sys/types.h>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/compiler_specific.h"
diff --git a/remoting/host/setup/daemon_controller_delegate_win.cc b/remoting/host/setup/daemon_controller_delegate_win.cc
index 58c6bd5..ef0627f 100644
--- a/remoting/host/setup/daemon_controller_delegate_win.cc
+++ b/remoting/host/setup/daemon_controller_delegate_win.cc
@@ -4,7 +4,8 @@
#include "remoting/host/setup/daemon_controller_delegate_win.h"
-#include "base/basictypes.h"
+#include <stddef.h>
+
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/json/json_reader.h"
diff --git a/remoting/host/setup/daemon_controller_delegate_win.h b/remoting/host/setup/daemon_controller_delegate_win.h
index d7b2582..f2aafc4 100644
--- a/remoting/host/setup/daemon_controller_delegate_win.h
+++ b/remoting/host/setup/daemon_controller_delegate_win.h
@@ -5,6 +5,7 @@
#ifndef REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_WIN_H_
#define REMOTING_HOST_SETUP_DAEMON_CONTROLLER_DELEGATE_WIN_H_
+#include "base/macros.h"
#include "remoting/host/setup/daemon_controller.h"
namespace remoting {
diff --git a/remoting/host/setup/gaia_oauth_client.h b/remoting/host/setup/gaia_oauth_client.h
index d6bb72c..1af8ded 100644
--- a/remoting/host/setup/gaia_oauth_client.h
+++ b/remoting/host/setup/gaia_oauth_client.h
@@ -7,6 +7,7 @@
#include <queue>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "net/url_request/url_request_context_getter.h"
diff --git a/remoting/host/setup/host_starter.h b/remoting/host/setup/host_starter.h
index 8ea93c4..881721b 100644
--- a/remoting/host/setup/host_starter.h
+++ b/remoting/host/setup/host_starter.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/callback.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "google_apis/gaia/gaia_oauth_client.h"
diff --git a/remoting/host/setup/me2me_native_messaging_host.cc b/remoting/host/setup/me2me_native_messaging_host.cc
index 37c004d..554008b 100644
--- a/remoting/host/setup/me2me_native_messaging_host.cc
+++ b/remoting/host/setup/me2me_native_messaging_host.cc
@@ -3,19 +3,21 @@
// found in the LICENSE file.
#include "remoting/host/setup/me2me_native_messaging_host.h"
+
#include <string>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/callback_helpers.h"
#include "base/command_line.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/strings/stringize_macros.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread.h"
#include "base/values.h"
+#include "build/build_config.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "google_apis/google_api_keys.h"
#include "ipc/ipc_channel.h"
diff --git a/remoting/host/setup/me2me_native_messaging_host.h b/remoting/host/setup/me2me_native_messaging_host.h
index 02c730d..aa50500 100644
--- a/remoting/host/setup/me2me_native_messaging_host.h
+++ b/remoting/host/setup/me2me_native_messaging_host.h
@@ -5,11 +5,13 @@
#ifndef REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_
#define REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/thread_checker.h"
#include "base/timer/timer.h"
+#include "build/build_config.h"
#include "extensions/browser/api/messaging/native_messaging_channel.h"
#include "remoting/host/native_messaging/log_message_handler.h"
#include "remoting/host/setup/daemon_controller.h"
diff --git a/remoting/host/setup/me2me_native_messaging_host_main.cc b/remoting/host/setup/me2me_native_messaging_host_main.cc
index bfc943e5..bac5198 100644
--- a/remoting/host/setup/me2me_native_messaging_host_main.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_main.cc
@@ -4,6 +4,8 @@
#include "remoting/host/setup/me2me_native_messaging_host_main.h"
+#include <stdint.h>
+
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file.h"
@@ -12,6 +14,7 @@
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread.h"
+#include "build/build_config.h"
#include "net/url_request/url_fetcher.h"
#include "remoting/base/breakpad.h"
#include "remoting/base/url_request_context_getter.h"
@@ -117,7 +120,7 @@ int StartMe2MeNativeMessagingHost() {
// are focused properly.
const base::CommandLine* command_line =
base::CommandLine::ForCurrentProcess();
- int64 native_view_handle = 0;
+ int64_t native_view_handle = 0;
if (command_line->HasSwitch(kParentWindowSwitchName)) {
std::string native_view =
command_line->GetSwitchValueASCII(kParentWindowSwitchName);
diff --git a/remoting/host/setup/me2me_native_messaging_host_unittest.cc b/remoting/host/setup/me2me_native_messaging_host_unittest.cc
index e973d7d..31a261d 100644
--- a/remoting/host/setup/me2me_native_messaging_host_unittest.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_unittest.cc
@@ -4,10 +4,13 @@
#include "remoting/host/setup/me2me_native_messaging_host.h"
-#include "base/basictypes.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/compiler_specific.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
+#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/stl_util.h"
@@ -385,7 +388,7 @@ void Me2MeNativeMessagingHostTest::TearDown() {
scoped_ptr<base::DictionaryValue>
Me2MeNativeMessagingHostTest::ReadMessageFromOutputPipe() {
while (true) {
- uint32 length;
+ uint32_t length;
int read_result = output_read_file_.ReadAtCurrentPos(
reinterpret_cast<char*>(&length), sizeof(length));
if (read_result != sizeof(length)) {
@@ -420,7 +423,7 @@ void Me2MeNativeMessagingHostTest::WriteMessageToInputPipe(
std::string message_json;
base::JSONWriter::Write(message, &message_json);
- uint32 length = message_json.length();
+ uint32_t length = message_json.length();
input_write_file_.WriteAtCurrentPos(reinterpret_cast<char*>(&length),
sizeof(length));
input_write_file_.WriteAtCurrentPos(message_json.data(), length);
diff --git a/remoting/host/setup/oauth_helper_unittest.cc b/remoting/host/setup/oauth_helper_unittest.cc
index cddb32a..f5e3616 100644
--- a/remoting/host/setup/oauth_helper_unittest.cc
+++ b/remoting/host/setup/oauth_helper_unittest.cc
@@ -4,6 +4,8 @@
#include "remoting/host/setup/oauth_helper.h"
+#include <stddef.h>
+
#include "testing/gtest/include/gtest/gtest.h"
namespace {
diff --git a/remoting/host/setup/pin_validator.cc b/remoting/host/setup/pin_validator.cc
index 14ff844..cc02e5d 100644
--- a/remoting/host/setup/pin_validator.cc
+++ b/remoting/host/setup/pin_validator.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+
#include "remoting/host/setup/pin_validator.h"
namespace remoting {
diff --git a/remoting/host/setup/service_client.h b/remoting/host/setup/service_client.h
index eaa26ab..8f9662d 100644
--- a/remoting/host/setup/service_client.h
+++ b/remoting/host/setup/service_client.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
namespace net {
diff --git a/remoting/host/setup/start_host.cc b/remoting/host/setup/start_host.cc
index 4572311..3009570 100644
--- a/remoting/host/setup/start_host.cc
+++ b/remoting/host/setup/start_host.cc
@@ -4,6 +4,7 @@
//
// A simple command-line app that registers and starts a host.
+#include <stddef.h>
#include <stdio.h>
#include "base/at_exit.h"
@@ -11,6 +12,7 @@
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread.h"
+#include "build/build_config.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
#include "remoting/base/logging.h"
diff --git a/remoting/host/setup/test_util.cc b/remoting/host/setup/test_util.cc
index efac123..ad80af6 100644
--- a/remoting/host/setup/test_util.cc
+++ b/remoting/host/setup/test_util.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "build/build_config.h"
#include "remoting/host/setup/test_util.h"
#if defined(OS_WIN)
diff --git a/remoting/host/setup/win/auth_code_getter.h b/remoting/host/setup/win/auth_code_getter.h
index 4373895..7688ae9 100644
--- a/remoting/host/setup/win/auth_code_getter.h
+++ b/remoting/host/setup/win/auth_code_getter.h
@@ -11,6 +11,7 @@
#include <string>
#include "base/callback.h"
+#include "base/macros.h"
#include "base/threading/non_thread_safe.h"
#include "base/timer/timer.h"
#include "base/win/scoped_comptr.h"