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

Side by Side Diff: mojo/services/network/net_adapters.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/services/network/net_adapters.h" 5 #include "mojo/services/network/net_adapters.h"
6 6
7 #include <stdint.h>
8
7 #include <utility> 9 #include <utility>
8 10
9 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
10 12
11 namespace mojo { 13 namespace mojo {
12 14
13 namespace { 15 namespace {
14 16
15 const uint32_t kMaxBufSize = 64 * 1024; 17 const uint32_t kMaxBufSize = 64 * 1024;
16 18
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 109
108 NetworkErrorPtr MakeNetworkError(int error_code) { 110 NetworkErrorPtr MakeNetworkError(int error_code) {
109 NetworkErrorPtr error = NetworkError::New(); 111 NetworkErrorPtr error = NetworkError::New();
110 error->code = error_code; 112 error->code = error_code;
111 if (error_code <= 0) 113 if (error_code <= 0)
112 error->description = net::ErrorToString(error_code); 114 error->description = net::ErrorToString(error_code);
113 return error; 115 return error;
114 } 116 }
115 117
116 } // namespace mojo 118 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/net_adapters.h ('k') | mojo/services/network/net_address_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698