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

Side by Side Diff: ppapi/examples/url_loader/stream_to_file.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 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 | « ppapi/examples/threading/threading.cc ('k') | ppapi/examples/url_loader/streaming.cc » ('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 // This example shows how to use the URLLoader in "stream to file" mode where 5 // This example shows how to use the URLLoader in "stream to file" mode where
6 // the browser writes incoming data to a file, which you can read out via the 6 // the browser writes incoming data to a file, which you can read out via the
7 // file I/O APIs. 7 // file I/O APIs.
8 // 8 //
9 // This example uses PostMessage between the plugin and the url_loader.html 9 // This example uses PostMessage between the plugin and the url_loader.html
10 // page in this directory to start the load and to communicate the result. 10 // page in this directory to start the load and to communicate the result.
11 11
12 #include <stdint.h>
13
12 #include "ppapi/c/ppb_file_io.h" 14 #include "ppapi/c/ppb_file_io.h"
13 #include "ppapi/cpp/file_io.h" 15 #include "ppapi/cpp/file_io.h"
14 #include "ppapi/cpp/file_ref.h" 16 #include "ppapi/cpp/file_ref.h"
15 #include "ppapi/cpp/instance.h" 17 #include "ppapi/cpp/instance.h"
16 #include "ppapi/cpp/module.h" 18 #include "ppapi/cpp/module.h"
17 #include "ppapi/cpp/url_loader.h" 19 #include "ppapi/cpp/url_loader.h"
18 #include "ppapi/cpp/url_request_info.h" 20 #include "ppapi/cpp/url_request_info.h"
19 #include "ppapi/cpp/url_response_info.h" 21 #include "ppapi/cpp/url_response_info.h"
20 #include "ppapi/utility/completion_callback_factory.h" 22 #include "ppapi/utility/completion_callback_factory.h"
21 23
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 }; 164 };
163 165
164 namespace pp { 166 namespace pp {
165 167
166 // Factory function for your specialization of the Module object. 168 // Factory function for your specialization of the Module object.
167 Module* CreateModule() { 169 Module* CreateModule() {
168 return new MyModule(); 170 return new MyModule();
169 } 171 }
170 172
171 } // namespace pp 173 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/examples/threading/threading.cc ('k') | ppapi/examples/url_loader/streaming.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698