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

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 missing return Created 6 years, 10 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 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 } 2395 }
2396 2396
2397 ppapi::Resource* PepperPluginInstanceImpl::GetSingletonResource( 2397 ppapi::Resource* PepperPluginInstanceImpl::GetSingletonResource(
2398 PP_Instance instance, 2398 PP_Instance instance,
2399 ppapi::SingletonResourceID id) { 2399 ppapi::SingletonResourceID id) {
2400 // Flash APIs and some others aren't implemented in-process. 2400 // Flash APIs and some others aren't implemented in-process.
2401 switch (id) { 2401 switch (id) {
2402 case ppapi::BROKER_SINGLETON_ID: 2402 case ppapi::BROKER_SINGLETON_ID:
2403 case ppapi::BROWSER_FONT_SINGLETON_ID: 2403 case ppapi::BROWSER_FONT_SINGLETON_ID:
2404 case ppapi::EXTENSIONS_COMMON_SINGLETON_ID: 2404 case ppapi::EXTENSIONS_COMMON_SINGLETON_ID:
2405 case ppapi::FILE_MAPPING_SINGLETON_ID:
2405 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID: 2406 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID:
2406 case ppapi::FLASH_FILE_SINGLETON_ID: 2407 case ppapi::FLASH_FILE_SINGLETON_ID:
2407 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID: 2408 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID:
2408 case ppapi::FLASH_SINGLETON_ID: 2409 case ppapi::FLASH_SINGLETON_ID:
2409 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID: 2410 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID:
2410 case ppapi::NETWORK_PROXY_SINGLETON_ID: 2411 case ppapi::NETWORK_PROXY_SINGLETON_ID:
2411 case ppapi::PDF_SINGLETON_ID: 2412 case ppapi::PDF_SINGLETON_ID:
2412 case ppapi::TRUETYPE_FONT_SINGLETON_ID: 2413 case ppapi::TRUETYPE_FONT_SINGLETON_ID:
2413 NOTIMPLEMENTED(); 2414 NOTIMPLEMENTED();
2414 return NULL; 2415 return NULL;
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
3102 // Running out-of-process. Initiate an IPC call to notify the plugin 3103 // Running out-of-process. Initiate an IPC call to notify the plugin
3103 // process. 3104 // process.
3104 ppapi::proxy::HostDispatcher* dispatcher = 3105 ppapi::proxy::HostDispatcher* dispatcher =
3105 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3106 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3106 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3107 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3107 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3108 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3108 } 3109 }
3109 } 3110 }
3110 3111
3111 } // namespace content 3112 } // 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