summaryrefslogtreecommitdiffstats
path: root/chrome/browser/push_messaging
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-25 18:10:43 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-26 02:11:32 +0000
commitb896c715dd14ec1f7ac800350b40eeb6de2ba868 (patch)
treeacc471478046a775c3492046a40c2ea84e8ea88a /chrome/browser/push_messaging
parentf5b61be8a18b07a2a928f10bf1f8f0e8a5358f13 (diff)
downloadchromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.zip
chromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.tar.gz
chromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.tar.bz2
Switch to standard integer types in chrome/browser/, part 3 of 4.
BUG=138542 TBR=thakis@chromium.org Review URL: https://codereview.chromium.org/1548133002 Cr-Commit-Position: refs/heads/master@{#366883}
Diffstat (limited to 'chrome/browser/push_messaging')
-rw-r--r--chrome/browser/push_messaging/push_messaging_app_identifier.h2
-rw-r--r--chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc2
-rw-r--r--chrome/browser/push_messaging/push_messaging_browsertest.cc9
-rw-r--r--chrome/browser/push_messaging/push_messaging_notification_manager.cc2
-rw-r--r--chrome/browser/push_messaging/push_messaging_permission_context.h1
-rw-r--r--chrome/browser/push_messaging/push_messaging_permission_context_factory.h1
-rw-r--r--chrome/browser/push_messaging/push_messaging_service_factory.h1
-rw-r--r--chrome/browser/push_messaging/push_messaging_service_impl.cc9
-rw-r--r--chrome/browser/push_messaging/push_messaging_service_impl.h3
-rw-r--r--chrome/browser/push_messaging/push_messaging_service_unittest.cc3
10 files changed, 25 insertions, 8 deletions
diff --git a/chrome/browser/push_messaging/push_messaging_app_identifier.h b/chrome/browser/push_messaging/push_messaging_app_identifier.h
index 542350d..5e8e1a7 100644
--- a/chrome/browser/push_messaging/push_messaging_app_identifier.h
+++ b/chrome/browser/push_messaging/push_messaging_app_identifier.h
@@ -5,11 +5,11 @@
#ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_APP_IDENTIFIER_H_
#define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_APP_IDENTIFIER_H_
+#include <stddef.h>
#include <stdint.h>
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
#include "base/logging.h"
#include "url/gurl.h"
diff --git a/chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc b/chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc
index 4face03..6ca0cea 100644
--- a/chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc
+++ b/chrome/browser/push_messaging/push_messaging_app_identifier_unittest.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/push_messaging/push_messaging_app_identifier.h"
+#include <stdint.h>
+
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/browser/push_messaging/push_messaging_browsertest.cc b/chrome/browser/push_messaging/push_messaging_browsertest.cc
index e7a3708..caa8a8d 100644
--- a/chrome/browser/push_messaging/push_messaging_browsertest.cc
+++ b/chrome/browser/push_messaging/push_messaging_browsertest.cc
@@ -2,15 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include <map>
#include <string>
#include "base/barrier_closure.h"
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
+#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browsing_data/browsing_data_helper.h"
#include "chrome/browser/browsing_data/browsing_data_remover.h"
@@ -173,7 +178,7 @@ class PushMessagingBrowserTest : public InProcessBrowserTest {
}
PushMessagingAppIdentifier GetAppIdentifierForServiceWorkerRegistration(
- int64 service_worker_registration_id);
+ int64_t service_worker_registration_id);
void SendMessageAndWaitUntilHandled(
const PushMessagingAppIdentifier& app_identifier,
@@ -263,7 +268,7 @@ void PushMessagingBrowserTest::TryToSubscribeSuccessfully(
PushMessagingAppIdentifier
PushMessagingBrowserTest::GetAppIdentifierForServiceWorkerRegistration(
- int64 service_worker_registration_id) {
+ int64_t service_worker_registration_id) {
GURL origin = https_server()->GetURL("/").GetOrigin();
PushMessagingAppIdentifier app_identifier =
PushMessagingAppIdentifier::FindByServiceWorker(
diff --git a/chrome/browser/push_messaging/push_messaging_notification_manager.cc b/chrome/browser/push_messaging/push_messaging_notification_manager.cc
index e5ec50a..bf7390a 100644
--- a/chrome/browser/push_messaging/push_messaging_notification_manager.cc
+++ b/chrome/browser/push_messaging/push_messaging_notification_manager.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/push_messaging/push_messaging_notification_manager.h"
+#include <stddef.h>
+
#include <bitset>
#include "base/metrics/histogram_macros.h"
diff --git a/chrome/browser/push_messaging/push_messaging_permission_context.h b/chrome/browser/push_messaging/push_messaging_permission_context.h
index 5ff4533..a23e259 100644
--- a/chrome/browser/push_messaging/push_messaging_permission_context.h
+++ b/chrome/browser/push_messaging/push_messaging_permission_context.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_H_
#include "base/gtest_prod_util.h"
+#include "base/macros.h"
#include "chrome/browser/permissions/permission_context_base.h"
#include "components/content_settings/core/common/content_settings_types.h"
diff --git a/chrome/browser/push_messaging/push_messaging_permission_context_factory.h b/chrome/browser/push_messaging/push_messaging_permission_context_factory.h
index baa261f..f5b6e93 100644
--- a/chrome/browser/push_messaging/push_messaging_permission_context_factory.h
+++ b/chrome/browser/push_messaging/push_messaging_permission_context_factory.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_FACTORY_H_
#define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_FACTORY_H_
+#include "base/macros.h"
#include "base/memory/singleton.h"
#include "chrome/browser/permissions/permission_context_factory_base.h"
diff --git a/chrome/browser/push_messaging/push_messaging_service_factory.h b/chrome/browser/push_messaging/push_messaging_service_factory.h
index ded124e..27591f0 100644
--- a/chrome/browser/push_messaging/push_messaging_service_factory.h
+++ b/chrome/browser/push_messaging/push_messaging_service_factory.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_FACTORY_H_
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
diff --git a/chrome/browser/push_messaging/push_messaging_service_impl.cc b/chrome/browser/push_messaging/push_messaging_service_impl.cc
index 1436a08..4819ec7 100644
--- a/chrome/browser/push_messaging/push_messaging_service_impl.cc
+++ b/chrome/browser/push_messaging/push_messaging_service_impl.cc
@@ -14,6 +14,7 @@
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
#include "base/prefs/pref_service.h"
+#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/permissions/permission_manager.h"
@@ -240,7 +241,7 @@ void PushMessagingServiceImpl::OnMessage(const std::string& app_id,
void PushMessagingServiceImpl::DeliverMessageCallback(
const std::string& app_id,
const GURL& requesting_origin,
- int64 service_worker_registration_id,
+ int64_t service_worker_registration_id,
const gcm::IncomingMessage& message,
const base::Closure& message_handled_closure,
content::PushDeliveryStatus status) {
@@ -340,7 +341,7 @@ GURL PushMessagingServiceImpl::GetPushEndpoint() {
void PushMessagingServiceImpl::SubscribeFromDocument(
const GURL& requesting_origin,
- int64 service_worker_registration_id,
+ int64_t service_worker_registration_id,
const std::string& sender_id,
int renderer_id,
int render_frame_id,
@@ -384,7 +385,7 @@ void PushMessagingServiceImpl::SubscribeFromDocument(
void PushMessagingServiceImpl::SubscribeFromWorker(
const GURL& requesting_origin,
- int64 service_worker_registration_id,
+ int64_t service_worker_registration_id,
const std::string& sender_id,
bool user_visible,
const content::PushMessagingService::RegisterCallback& register_callback) {
@@ -577,7 +578,7 @@ void PushMessagingServiceImpl::DidGetEncryptionInfo(
void PushMessagingServiceImpl::Unsubscribe(
const GURL& requesting_origin,
- int64 service_worker_registration_id,
+ int64_t service_worker_registration_id,
const std::string& sender_id,
const content::PushMessagingService::UnregisterCallback& callback) {
PushMessagingAppIdentifier app_identifier =
diff --git a/chrome/browser/push_messaging/push_messaging_service_impl.h b/chrome/browser/push_messaging/push_messaging_service_impl.h
index 6114583..e215ea4 100644
--- a/chrome/browser/push_messaging/push_messaging_service_impl.h
+++ b/chrome/browser/push_messaging/push_messaging_service_impl.h
@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/background/background_trigger.h"
@@ -128,7 +129,7 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
void DeliverMessageCallback(const std::string& app_id,
const GURL& requesting_origin,
- int64 service_worker_registration_id,
+ int64_t service_worker_registration_id,
const gcm::IncomingMessage& message,
const base::Closure& message_handled_closure,
content::PushDeliveryStatus status);
diff --git a/chrome/browser/push_messaging/push_messaging_service_unittest.cc b/chrome/browser/push_messaging/push_messaging_service_unittest.cc
index 52a7069..31446b9 100644
--- a/chrome/browser/push_messaging/push_messaging_service_unittest.cc
+++ b/chrome/browser/push_messaging/push_messaging_service_unittest.cc
@@ -4,10 +4,13 @@
#include "content/public/browser/push_messaging_service.h"
+#include <stdint.h>
+
#include <string>
#include <vector>
#include "base/command_line.h"
+#include "base/macros.h"
#include "base/run_loop.h"
#include "base/thread_task_runner_handle.h"
#include "chrome/browser/permissions/permission_manager.h"