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

Side by Side Diff: content/child/plugin_param_traits.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/child/quota_dispatcher.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/plugin_param_traits.h" 5 #include "content/child/plugin_param_traits.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "ipc/ipc_message_utils.h" 8 #include "ipc/ipc_message_utils.h"
9 #include "third_party/WebKit/public/web/WebBindings.h" 9 #include "third_party/WebKit/public/web/WebBindings.h"
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 content::SerializeNPIdentifier(p.identifier, m); 116 content::SerializeNPIdentifier(p.identifier, m);
117 } 117 }
118 118
119 bool ParamTraits<NPIdentifier_Param>::Read(const Message* m, 119 bool ParamTraits<NPIdentifier_Param>::Read(const Message* m,
120 PickleIterator* iter, 120 PickleIterator* iter,
121 param_type* r) { 121 param_type* r) {
122 return content::DeserializeNPIdentifier(iter, &r->identifier); 122 return content::DeserializeNPIdentifier(iter, &r->identifier);
123 } 123 }
124 124
125 void ParamTraits<NPIdentifier_Param>::Log(const param_type& p, std::string* l) { 125 void ParamTraits<NPIdentifier_Param>::Log(const param_type& p, std::string* l) {
126 if (WebKit::WebBindings::identifierIsString(p.identifier)) { 126 if (blink::WebBindings::identifierIsString(p.identifier)) {
127 NPUTF8* str = WebKit::WebBindings::utf8FromIdentifier(p.identifier); 127 NPUTF8* str = blink::WebBindings::utf8FromIdentifier(p.identifier);
128 l->append(str); 128 l->append(str);
129 free(str); 129 free(str);
130 } else { 130 } else {
131 l->append(base::IntToString( 131 l->append(base::IntToString(
132 WebKit::WebBindings::intFromIdentifier(p.identifier))); 132 blink::WebBindings::intFromIdentifier(p.identifier)));
133 } 133 }
134 } 134 }
135 135
136 } // namespace IPC 136 } // namespace IPC
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_win.cc ('k') | content/child/quota_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698