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

Side by Side Diff: src/shared/ppapi_proxy/plugin_ppb.cc

Issue 6177007: ppapi_proxy: Support loading and reading urls. Proxy URLLoader.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 11 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 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h" 10 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h"
11 #include "native_client/src/shared/ppapi_proxy/plugin_audio_config.h" 11 #include "native_client/src/shared/ppapi_proxy/plugin_audio_config.h"
12 #include "native_client/src/shared/ppapi_proxy/plugin_buffer.h" 12 #include "native_client/src/shared/ppapi_proxy/plugin_buffer.h"
13 #include "native_client/src/shared/ppapi_proxy/plugin_core.h" 13 #include "native_client/src/shared/ppapi_proxy/plugin_core.h"
14 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_2d.h" 14 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_2d.h"
15 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h" 15 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h"
16 #include "native_client/src/shared/ppapi_proxy/plugin_image_data.h" 16 #include "native_client/src/shared/ppapi_proxy/plugin_image_data.h"
17 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_instance.h" 17 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_instance.h"
18 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_loader.h"
18 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_request_info.h" 19 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_request_info.h"
19 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_response_info.h" 20 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_url_response_info.h"
20 #include "native_client/src/shared/ppapi_proxy/plugin_url_loader.h"
21 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" 21 #include "native_client/src/shared/ppapi_proxy/plugin_var.h"
22 #include "native_client/src/shared/ppapi_proxy/utility.h" 22 #include "native_client/src/shared/ppapi_proxy/utility.h"
23 #include "srpcgen/ppb_rpc.h" 23 #include "srpcgen/ppb_rpc.h"
24 24
25 namespace ppapi_proxy { 25 namespace ppapi_proxy {
26 26
27 // SRPC-abstraction wrapper for PPB_GetInterface method. 27 // SRPC-abstraction wrapper for PPB_GetInterface method.
28 28
29 namespace { 29 namespace {
30 30
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // linearly. 79 // linearly.
80 for (size_t i = 0; i < NACL_ARRAY_SIZE(interface_map); ++i) { 80 for (size_t i = 0; i < NACL_ARRAY_SIZE(interface_map); ++i) {
81 if (strcmp(interface_name, interface_map[i].name) == 0) { 81 if (strcmp(interface_name, interface_map[i].name) == 0) {
82 return interface_map[i].func(); 82 return interface_map[i].func();
83 } 83 }
84 } 84 }
85 return NULL; 85 return NULL;
86 } 86 }
87 87
88 } // namespace ppapi_proxy 88 } // namespace ppapi_proxy
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/plugin_callback.cc ('k') | src/shared/ppapi_proxy/plugin_ppb_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698