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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc

Issue 7799031: Reland http://codereview.chromium.org/7648033 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/dev/ppb_testing_dev.h ('k') | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc
index b993b26d7e33cc595f06944c8e8086a0f659e087..082e15c6614470605aad8384f808f627f217333c 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_testing.cc
@@ -89,6 +89,14 @@ uint32_t GetLiveObjectsForInstance(PP_Instance instance) {
return live_object_count;
}
+PP_Bool IsOutOfProcess() {
+ // The NaCl plugin is run in-process, and all calls are synchronous, so even
+ // though a NaCl module runs in a separate process, it behaves as if it were
+ // in-process. Furthermore, calls off of the main thread are not supported
+ // (same as trusted in-process).
+ return PP_FALSE;
+}
+
} // namespace
const PPB_Testing_Dev* PluginTesting::GetInterface() {
@@ -96,7 +104,8 @@ const PPB_Testing_Dev* PluginTesting::GetInterface() {
ReadImageData,
RunMessageLoop,
QuitMessageLoop,
- GetLiveObjectsForInstance
+ GetLiveObjectsForInstance,
+ IsOutOfProcess
};
return &testing_interface;
}
« no previous file with comments | « ppapi/c/dev/ppb_testing_dev.h ('k') | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698