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

Side by Side Diff: content/child/npapi/plugin_host.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/plugin_host.h ('k') | content/child/npapi/plugin_instance.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/plugin_host.h" 5 #include "content/child/npapi/plugin_host.h"
6 6
7 #include <stddef.h>
8 #include <string.h>
9
7 #include "base/command_line.h" 10 #include "base/command_line.h"
8 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
9 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
10 #include "base/logging.h" 13 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string_piece.h" 15 #include "base/strings/string_piece.h"
13 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
14 #include "base/strings/sys_string_conversions.h" 17 #include "base/strings/sys_string_conversions.h"
15 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
16 #include "build/build_config.h" 19 #include "build/build_config.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 host_funcs_.hasmethod = overrides->hasmethod; 195 host_funcs_.hasmethod = overrides->hasmethod;
193 196
194 if (overrides->setexception) 197 if (overrides->setexception)
195 host_funcs_.setexception = overrides->setexception; 198 host_funcs_.setexception = overrides->setexception;
196 199
197 if (overrides->enumerate) 200 if (overrides->enumerate)
198 host_funcs_.enumerate = overrides->enumerate; 201 host_funcs_.enumerate = overrides->enumerate;
199 } 202 }
200 203
201 bool PluginHost::SetPostData(const char* buf, 204 bool PluginHost::SetPostData(const char* buf,
202 uint32 length, 205 uint32_t length,
203 std::vector<std::string>* names, 206 std::vector<std::string>* names,
204 std::vector<std::string>* values, 207 std::vector<std::string>* values,
205 std::vector<char>* body) { 208 std::vector<char>* body) {
206 // Use a state table to do the parsing. Whitespace must be 209 // Use a state table to do the parsing. Whitespace must be
207 // trimmed after the fact if desired. In our case, we actually 210 // trimmed after the fact if desired. In our case, we actually
208 // don't care about the whitespace, because we're just going to 211 // don't care about the whitespace, because we're just going to
209 // pass this back into another POST. This function strips out the 212 // pass this back into another POST. This function strips out the
210 // "Content-length" header and does not append it to the request. 213 // "Content-length" header and does not append it to the request.
211 214
212 // 215 //
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 NPBool NPN_UnfocusInstance(NPP id, NPFocusDirection direction) { 929 NPBool NPN_UnfocusInstance(NPP id, NPFocusDirection direction) {
927 // TODO: Implement advanced key handling: http://crbug.com/46578 930 // TODO: Implement advanced key handling: http://crbug.com/46578
928 NOTIMPLEMENTED(); 931 NOTIMPLEMENTED();
929 return false; 932 return false;
930 } 933 }
931 934
932 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) { 935 void NPN_URLRedirectResponse(NPP instance, void* notify_data, NPBool allow) {
933 } 936 }
934 937
935 } // extern "C" 938 } // extern "C"
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_host.h ('k') | content/child/npapi/plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698