| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |