OLD | NEW |
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 Loading... |
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 |
OLD | NEW |