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

Side by Side Diff: ppapi/examples/url_loader/streaming.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years 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
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 // This example shows how to use the URLLoader in streaming mode (reading to 5 // This example shows how to use the URLLoader in streaming mode (reading to
6 // memory as data comes over the network). This example uses PostMessage between 6 // memory as data comes over the network). This example uses PostMessage between
7 // the plugin and the url_loader.html page in this directory to start the load 7 // the plugin and the url_loader.html page in this directory to start the load
8 // and to communicate the result. 8 // and to communicate the result.
9 // 9 //
10 // The other mode is to stream to a file instead. See stream_to_file.cc 10 // The other mode is to stream to a file instead. See stream_to_file.cc
11 11
12 #include <stdint.h>
13
12 #include "ppapi/cpp/instance.h" 14 #include "ppapi/cpp/instance.h"
13 #include "ppapi/cpp/module.h" 15 #include "ppapi/cpp/module.h"
14 #include "ppapi/cpp/url_loader.h" 16 #include "ppapi/cpp/url_loader.h"
15 #include "ppapi/cpp/url_request_info.h" 17 #include "ppapi/cpp/url_request_info.h"
16 #include "ppapi/cpp/url_response_info.h" 18 #include "ppapi/cpp/url_response_info.h"
17 #include "ppapi/utility/completion_callback_factory.h" 19 #include "ppapi/utility/completion_callback_factory.h"
18 20
19 // When compiling natively on Windows, PostMessage can be #define-d to 21 // When compiling natively on Windows, PostMessage can be #define-d to
20 // something else. 22 // something else.
21 #ifdef PostMessage 23 #ifdef PostMessage
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 }; 169 };
168 170
169 namespace pp { 171 namespace pp {
170 172
171 // Factory function for your specialization of the Module object. 173 // Factory function for your specialization of the Module object.
172 Module* CreateModule() { 174 Module* CreateModule() {
173 return new MyModule(); 175 return new MyModule();
174 } 176 }
175 177
176 } // namespace pp 178 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/examples/url_loader/stream_to_file.cc ('k') | ppapi/examples/video_capture/video_capture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698