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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 69663002: PPAPI: Implement PPB_FileMapping on POSIX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rough patch. Starting testing. Created 6 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
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | content/renderer/pepper/plugin_module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 } 2381 }
2382 2382
2383 ppapi::Resource* PepperPluginInstanceImpl::GetSingletonResource( 2383 ppapi::Resource* PepperPluginInstanceImpl::GetSingletonResource(
2384 PP_Instance instance, 2384 PP_Instance instance,
2385 ppapi::SingletonResourceID id) { 2385 ppapi::SingletonResourceID id) {
2386 // Flash APIs and some others aren't implemented in-process. 2386 // Flash APIs and some others aren't implemented in-process.
2387 switch (id) { 2387 switch (id) {
2388 case ppapi::BROKER_SINGLETON_ID: 2388 case ppapi::BROKER_SINGLETON_ID:
2389 case ppapi::BROWSER_FONT_SINGLETON_ID: 2389 case ppapi::BROWSER_FONT_SINGLETON_ID:
2390 case ppapi::EXTENSIONS_COMMON_SINGLETON_ID: 2390 case ppapi::EXTENSIONS_COMMON_SINGLETON_ID:
2391 case ppapi::FILE_MAPPING_SINGLETON_ID:
2391 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID: 2392 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID:
2392 case ppapi::FLASH_FILE_SINGLETON_ID: 2393 case ppapi::FLASH_FILE_SINGLETON_ID:
2393 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID: 2394 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID:
2394 case ppapi::FLASH_SINGLETON_ID: 2395 case ppapi::FLASH_SINGLETON_ID:
2395 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID: 2396 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID:
2396 case ppapi::NETWORK_PROXY_SINGLETON_ID: 2397 case ppapi::NETWORK_PROXY_SINGLETON_ID:
2397 case ppapi::PDF_SINGLETON_ID: 2398 case ppapi::PDF_SINGLETON_ID:
2398 case ppapi::TRUETYPE_FONT_SINGLETON_ID: 2399 case ppapi::TRUETYPE_FONT_SINGLETON_ID:
2399 NOTIMPLEMENTED(); 2400 NOTIMPLEMENTED();
2400 return NULL; 2401 return NULL;
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
3077 // Running out-of-process. Initiate an IPC call to notify the plugin 3078 // Running out-of-process. Initiate an IPC call to notify the plugin
3078 // process. 3079 // process.
3079 ppapi::proxy::HostDispatcher* dispatcher = 3080 ppapi::proxy::HostDispatcher* dispatcher =
3080 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3081 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3081 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3082 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3082 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3083 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3083 } 3084 }
3084 } 3085 }
3085 3086
3086 } // namespace content 3087 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | content/renderer/pepper/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698