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

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: Fix Windows build? 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
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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 } 2393 }
2394 2394
2395 ppapi::Resource* PepperPluginInstanceImpl::GetSingletonResource( 2395 ppapi::Resource* PepperPluginInstanceImpl::GetSingletonResource(
2396 PP_Instance instance, 2396 PP_Instance instance,
2397 ppapi::SingletonResourceID id) { 2397 ppapi::SingletonResourceID id) {
2398 // Flash APIs and some others aren't implemented in-process. 2398 // Flash APIs and some others aren't implemented in-process.
2399 switch (id) { 2399 switch (id) {
2400 case ppapi::BROKER_SINGLETON_ID: 2400 case ppapi::BROKER_SINGLETON_ID:
2401 case ppapi::BROWSER_FONT_SINGLETON_ID: 2401 case ppapi::BROWSER_FONT_SINGLETON_ID:
2402 case ppapi::EXTENSIONS_COMMON_SINGLETON_ID: 2402 case ppapi::EXTENSIONS_COMMON_SINGLETON_ID:
2403 case ppapi::FILE_MAPPING_SINGLETON_ID:
2403 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID: 2404 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID:
2404 case ppapi::FLASH_FILE_SINGLETON_ID: 2405 case ppapi::FLASH_FILE_SINGLETON_ID:
2405 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID: 2406 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID:
2406 case ppapi::FLASH_SINGLETON_ID: 2407 case ppapi::FLASH_SINGLETON_ID:
2407 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID: 2408 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID:
2408 case ppapi::NETWORK_PROXY_SINGLETON_ID: 2409 case ppapi::NETWORK_PROXY_SINGLETON_ID:
2409 case ppapi::PDF_SINGLETON_ID: 2410 case ppapi::PDF_SINGLETON_ID:
2410 case ppapi::TRUETYPE_FONT_SINGLETON_ID: 2411 case ppapi::TRUETYPE_FONT_SINGLETON_ID:
2411 NOTIMPLEMENTED(); 2412 NOTIMPLEMENTED();
2412 return NULL; 2413 return NULL;
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
3089 // Running out-of-process. Initiate an IPC call to notify the plugin 3090 // Running out-of-process. Initiate an IPC call to notify the plugin
3090 // process. 3091 // process.
3091 ppapi::proxy::HostDispatcher* dispatcher = 3092 ppapi::proxy::HostDispatcher* dispatcher =
3092 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3093 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3093 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3094 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3094 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3095 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3095 } 3096 }
3096 } 3097 }
3097 3098
3098 } // namespace content 3099 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698