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

Side by Side Diff: native_client_sdk/src/examples/file_io/file_io.cc

Issue 10539082: Add DSC files for the various examples. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 /// @file file_io.cc 5 /// @file file_io.cc
6 /// This example demonstrates the use of persistent file I/O 6 /// This example demonstrates the use of persistent file I/O
7 7
8 #include <limits.h>
9 #include <stddef.h>
8 #include <stdio.h> 10 #include <stdio.h>
9 11
10 #include <sstream> 12 #include <sstream>
11 #include <string> 13 #include <string>
12 14
13 #include "ppapi/c/ppb_file_io.h" 15 #include "ppapi/c/ppb_file_io.h"
14 #include "ppapi/cpp/file_io.h" 16 #include "ppapi/cpp/file_io.h"
15 #include "ppapi/cpp/file_ref.h" 17 #include "ppapi/cpp/file_ref.h"
16 #include "ppapi/cpp/file_system.h" 18 #include "ppapi/cpp/file_system.h"
17 #include "ppapi/cpp/instance.h" 19 #include "ppapi/cpp/instance.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 /// Factory function called by the browser when the module is first loaded. 437 /// Factory function called by the browser when the module is first loaded.
436 /// The browser keeps a singleton of this module. It calls the 438 /// The browser keeps a singleton of this module. It calls the
437 /// CreateInstance() method on the object you return to make instances. There 439 /// CreateInstance() method on the object you return to make instances. There
438 /// is one instance per <embed> tag on the page. This is the main binding 440 /// is one instance per <embed> tag on the page. This is the main binding
439 /// point for your NaCl module with the browser. 441 /// point for your NaCl module with the browser.
440 Module* CreateModule() { 442 Module* CreateModule() {
441 return new FileIoModule(); 443 return new FileIoModule();
442 } 444 }
443 } // namespace pp 445 } // namespace pp
444 446
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/file_io/example.dsc ('k') | native_client_sdk/src/examples/file_io/file_io.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698