| 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/npruntime_util.h" | 5 #include "content/child/npapi/npruntime_util.h" |
| 6 | 6 |
| 7 #include "base/pickle.h" | 7 #include "base/pickle.h" |
| 8 #include "third_party/WebKit/public/web/WebBindings.h" | 8 #include "third_party/WebKit/public/web/WebBindings.h" |
| 9 | 9 |
| 10 using WebKit::WebBindings; | 10 using WebKit::WebBindings; |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) { | 14 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) { |
| 15 const NPUTF8* string; | 15 const NPUTF8* string; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 42 } else { | 42 } else { |
| 43 int number; | 43 int number; |
| 44 if (!pickle_iter->ReadInt(&number)) | 44 if (!pickle_iter->ReadInt(&number)) |
| 45 return false; | 45 return false; |
| 46 *identifier = WebBindings::getIntIdentifier(number); | 46 *identifier = WebBindings::getIntIdentifier(number); |
| 47 } | 47 } |
| 48 return true; | 48 return true; |
| 49 } | 49 } |
| 50 | 50 |
| 51 } // namespace content | 51 } // namespace content |
| OLD | NEW |