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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/pepper_interface.h

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem Created 7 years, 5 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 #ifndef LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_ 5 #ifndef LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_
6 #define LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_ 6 #define LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_
7 7
8 #include <ppapi/c/pp_completion_callback.h> 8 #include <ppapi/c/pp_completion_callback.h>
9 #include <ppapi/c/pp_file_info.h> 9 #include <ppapi/c/pp_file_info.h>
10 #include <ppapi/c/pp_instance.h> 10 #include <ppapi/c/pp_instance.h>
11 #include <ppapi/c/pp_resource.h> 11 #include <ppapi/c/pp_resource.h>
12 #include <ppapi/c/pp_var.h> 12 #include <ppapi/c/pp_var.h>
13 #include <ppapi/c/ppb_console.h> 13 #include <ppapi/c/ppb_console.h>
14 #include <ppapi/c/ppb_file_io.h> 14 #include <ppapi/c/ppb_file_io.h>
15 #include <ppapi/c/ppb_file_ref.h> 15 #include <ppapi/c/ppb_file_ref.h>
16 #include <ppapi/c/ppb_file_system.h> 16 #include <ppapi/c/ppb_file_system.h>
17 #include <ppapi/c/ppb_messaging.h> 17 #include <ppapi/c/ppb_messaging.h>
18 #include <ppapi/c/ppb_messaging.h> 18 #include <ppapi/c/ppb_messaging.h>
19 #include <ppapi/c/ppb_url_loader.h> 19 #include <ppapi/c/ppb_url_loader.h>
20 #include <ppapi/c/ppb_url_request_info.h> 20 #include <ppapi/c/ppb_url_request_info.h>
21 #include <ppapi/c/ppb_url_response_info.h> 21 #include <ppapi/c/ppb_url_response_info.h>
22 #include <ppapi/c/ppb_var.h> 22 #include <ppapi/c/ppb_var.h>
23 23
24 #include <sdk_util/macros.h> 24 #include <sdk_util/macros.h>
25 25
26 namespace nacl_io {
27
26 // Note: To add a new interface: 28 // Note: To add a new interface:
27 // 29 //
28 // 1. Using one of the other interfaces as a template, add your interface to 30 // 1. Using one of the other interfaces as a template, add your interface to
29 // all_interfaces.h. 31 // all_interfaces.h.
30 // 2. Add the necessary pepper header to the top of this file. 32 // 2. Add the necessary pepper header to the top of this file.
31 // 3. Compile and cross your fingers! 33 // 3. Compile and cross your fingers!
32 34
33 35
34 // Forward declare interface classes. 36 // Forward declare interface classes.
35 #include "nacl_io/pepper/undef_macros.h" 37 #include "nacl_io/pepper/undef_macros.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Return the resource without decrementing its refcount. 93 // Return the resource without decrementing its refcount.
92 PP_Resource Release(); 94 PP_Resource Release();
93 95
94 private: 96 private:
95 PepperInterface* ppapi_; 97 PepperInterface* ppapi_;
96 PP_Resource resource_; 98 PP_Resource resource_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(ScopedResource); 100 DISALLOW_COPY_AND_ASSIGN(ScopedResource);
99 }; 101 };
100 102
103 } // namespace nacl_io
104
101 #endif // LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_ 105 #endif // LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/path.cc ('k') | native_client_sdk/src/libraries/nacl_io/pepper_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698