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

Side by Side Diff: content/browser/notifications/notification_database_data_conversions.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/notifications/notification_database_data_conversions.h " 5 #include "content/browser/notifications/notification_database_data_conversions.h "
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/notifications/notification_database_data.pb.h" 11 #include "content/browser/notifications/notification_database_data.pb.h"
10 #include "content/public/browser/notification_database_data.h" 12 #include "content/public/browser/notification_database_data.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 bool DeserializeNotificationDatabaseData(const std::string& input, 16 bool DeserializeNotificationDatabaseData(const std::string& input,
15 NotificationDatabaseData* output) { 17 NotificationDatabaseData* output) {
16 DCHECK(output); 18 DCHECK(output);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 message.set_notification_id(input.notification_id); 127 message.set_notification_id(input.notification_id);
126 message.set_origin(input.origin.spec()); 128 message.set_origin(input.origin.spec());
127 message.set_service_worker_registration_id( 129 message.set_service_worker_registration_id(
128 input.service_worker_registration_id); 130 input.service_worker_registration_id);
129 message.set_allocated_notification_data(payload.release()); 131 message.set_allocated_notification_data(payload.release());
130 132
131 return message.SerializeToString(output); 133 return message.SerializeToString(output);
132 } 134 }
133 135
134 } // namespace content 136 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698