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

Side by Side Diff: content/child/npapi/npruntime_util.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/child/npapi/npobject_util.cc ('k') | content/child/npapi/plugin_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/child/npapi/npruntime_util.h" 5 #include "content/child/npapi/npruntime_util.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include "base/pickle.h" 10 #include "base/pickle.h"
8 #include "third_party/WebKit/public/web/WebBindings.h" 11 #include "third_party/WebKit/public/web/WebBindings.h"
9 12
10 using blink::WebBindings; 13 using blink::WebBindings;
11 14
12 namespace content { 15 namespace content {
13 16
14 bool SerializeNPIdentifier(NPIdentifier identifier, base::Pickle* pickle) { 17 bool SerializeNPIdentifier(NPIdentifier identifier, base::Pickle* pickle) {
15 const NPUTF8* string; 18 const NPUTF8* string;
16 int32_t number; 19 int32_t number;
(...skipping 25 matching lines...) Expand all
42 } else { 45 } else {
43 int number; 46 int number;
44 if (!pickle_iter->ReadInt(&number)) 47 if (!pickle_iter->ReadInt(&number))
45 return false; 48 return false;
46 *identifier = WebBindings::getIntIdentifier(number); 49 *identifier = WebBindings::getIntIdentifier(number);
47 } 50 }
48 return true; 51 return true;
49 } 52 }
50 53
51 } // namespace content 54 } // namespace content
OLDNEW
« no previous file with comments | « content/child/npapi/npobject_util.cc ('k') | content/child/npapi/plugin_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698