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

Side by Side Diff: webkit/glue/npruntime_util.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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 | « webkit/glue/multipart_response_delegate_unittest.cc ('k') | webkit/glue/password_form.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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "webkit/glue/npruntime_util.h" 5 #include "webkit/glue/npruntime_util.h"
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 #include "webkit/api/public/WebBindings.h" 8 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h"
9 9
10 using WebKit::WebBindings; 10 using WebKit::WebBindings;
11 11
12 namespace webkit_glue { 12 namespace webkit_glue {
13 13
14 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) { 14 bool SerializeNPIdentifier(NPIdentifier identifier, Pickle* pickle) {
15 const NPUTF8* string; 15 const NPUTF8* string;
16 int32_t number; 16 int32_t number;
17 bool is_string; 17 bool is_string;
18 WebBindings::extractIdentifierData(identifier, string, number, is_string); 18 WebBindings::extractIdentifierData(identifier, string, number, is_string);
(...skipping 23 matching lines...) Expand all
42 } else { 42 } else {
43 int number; 43 int number;
44 if (!pickle.ReadInt(pickle_iter, &number)) 44 if (!pickle.ReadInt(pickle_iter, &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 webkit_glue 51 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/multipart_response_delegate_unittest.cc ('k') | webkit/glue/password_form.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698