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

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

Issue 22587003: [NaCl SDK] Add UDP and TCP Sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to browser tester fix. Created 7 years, 4 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_bool.h> 8 #include <ppapi/c/pp_bool.h>
9 #include <ppapi/c/pp_completion_callback.h> 9 #include <ppapi/c/pp_completion_callback.h>
10 #include <ppapi/c/pp_errors.h> 10 #include <ppapi/c/pp_errors.h>
11 #include <ppapi/c/pp_file_info.h> 11 #include <ppapi/c/pp_file_info.h>
12 #include <ppapi/c/pp_instance.h> 12 #include <ppapi/c/pp_instance.h>
13 #include <ppapi/c/pp_resource.h> 13 #include <ppapi/c/pp_resource.h>
14 #include <ppapi/c/pp_var.h> 14 #include <ppapi/c/pp_var.h>
15 #include <ppapi/c/ppb_console.h> 15 #include <ppapi/c/ppb_console.h>
16 #include <ppapi/c/ppb_core.h> 16 #include <ppapi/c/ppb_core.h>
17 #include <ppapi/c/ppb_file_io.h> 17 #include <ppapi/c/ppb_file_io.h>
18 #include <ppapi/c/ppb_file_ref.h> 18 #include <ppapi/c/ppb_file_ref.h>
19 #include <ppapi/c/ppb_file_system.h> 19 #include <ppapi/c/ppb_file_system.h>
20 #include <ppapi/c/ppb_host_resolver.h> 20 #include <ppapi/c/ppb_host_resolver.h>
21 #include <ppapi/c/ppb_messaging.h> 21 #include <ppapi/c/ppb_messaging.h>
22 #include <ppapi/c/ppb_messaging.h> 22 #include <ppapi/c/ppb_messaging.h>
23 #include <ppapi/c/ppb_net_address.h> 23 #include <ppapi/c/ppb_net_address.h>
24 #include <ppapi/c/ppb_tcp_socket.h>
24 #include <ppapi/c/ppb_url_loader.h> 25 #include <ppapi/c/ppb_url_loader.h>
25 #include <ppapi/c/ppb_url_request_info.h> 26 #include <ppapi/c/ppb_url_request_info.h>
26 #include <ppapi/c/ppb_url_response_info.h> 27 #include <ppapi/c/ppb_url_response_info.h>
28 #include <ppapi/c/ppb_udp_socket.h>
27 #include <ppapi/c/ppb_var.h> 29 #include <ppapi/c/ppb_var.h>
28 30
29 #include <sdk_util/macros.h> 31 #include <sdk_util/macros.h>
30 32
31 namespace nacl_io { 33 namespace nacl_io {
32 34
33 // This class is the base interface for Pepper used by nacl_io. 35 // This class is the base interface for Pepper used by nacl_io.
34 // 36 //
35 // We use #include and macro magic to simplify adding new interfaces. The 37 // We use #include and macro magic to simplify adding new interfaces. The
36 // resulting PepperInterface basically looks like this: 38 // resulting PepperInterface basically looks like this:
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 private: 142 private:
141 PepperInterface* ppapi_; 143 PepperInterface* ppapi_;
142 PP_Resource resource_; 144 PP_Resource resource_;
143 145
144 DISALLOW_COPY_AND_ASSIGN(ScopedResource); 146 DISALLOW_COPY_AND_ASSIGN(ScopedResource);
145 }; 147 };
146 148
147 } // namespace nacl_io 149 } // namespace nacl_io
148 150
149 #endif // LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_ 151 #endif // LIBRARIES_NACL_IO_PEPPER_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698