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

Unified Diff: src/shared/ppapi_proxy/browser_instance.cc

Issue 5631003: ppapi_proxy: Make DebugPrintf more usable.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years 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 | « no previous file | src/shared/ppapi_proxy/browser_ppp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/browser_instance.cc
===================================================================
--- src/shared/ppapi_proxy/browser_instance.cc (revision 3872)
+++ src/shared/ppapi_proxy/browser_instance.cc (working copy)
@@ -67,10 +67,10 @@
}
PP_Bool DidCreate(PP_Instance instance,
- uint32_t argc,
- const char* argn[],
- const char* argv[]) {
- DebugPrintf("BrowserInstance::DidCreate(%"NACL_PRId64")\n", instance);
+ uint32_t argc,
+ const char* argn[],
+ const char* argv[]) {
+ DebugPrintf("Browser::PPP_Instance::DidCreate(%"NACL_PRId64")\n", instance);
uint32_t argn_size;
scoped_array<char> argn_serial(ArgArraySerialize(argc, argn, &argn_size));
if (argn_serial.get() == NULL) {
@@ -100,7 +100,7 @@
}
void DidDestroy(PP_Instance instance) {
- DebugPrintf("BrowserInstance::Delete(%"NACL_PRId64")\n", instance);
+ DebugPrintf("Browser::PPP_Instance::Delete(%"NACL_PRId64")\n", instance);
NaClSrpcChannel* channel = LookupBrowserPppForInstance(instance)->channel();
(void) PppInstanceRpcClient::PPP_Instance_DidDestroy(channel, instance);
}
@@ -108,7 +108,8 @@
void DidChangeView(PP_Instance instance,
const PP_Rect* position,
const PP_Rect* clip) {
- DebugPrintf("BrowserInstance::DidChangeView(%"NACL_PRId64")\n", instance);
+ DebugPrintf("Browser::PPP_Instance::DidChangeView(%"NACL_PRId64")\n",
+ instance);
NaClSrpcChannel* channel = LookupBrowserPppForInstance(instance)->channel();
int32_t position_array[4];
const uint32_t kPositionArraySize = NACL_ARRAY_SIZE(position_array);
@@ -131,7 +132,8 @@
}
void DidChangeFocus(PP_Instance instance, PP_Bool has_focus) {
- DebugPrintf("BrowserInstance::DidChangeFocus(%"NACL_PRId64")\n", instance);
+ DebugPrintf("Browser::PPP_Instance::DidChangeFocus(%"NACL_PRId64")\n",
+ instance);
NaClSrpcChannel* channel = LookupBrowserPppForInstance(instance)->channel();
// DidChangeFocus() always succeeds, no need to check the SRPC return value.
(void) PppInstanceRpcClient::PPP_Instance_DidChangeFocus(channel,
@@ -139,7 +141,8 @@
}
PP_Bool HandleInputEvent(PP_Instance instance, const PP_InputEvent* event) {
- DebugPrintf("BrowserInstance::HandleInputEvent(%"NACL_PRId64")\n", instance);
+ DebugPrintf("Browser::PPP_Instance::HandleInputEvent(%"NACL_PRId64")\n",
+ instance);
NaClSrpcChannel* channel = LookupBrowserPppForInstance(instance)->channel();
int32_t success;
char* event_data = const_cast<char*>(reinterpret_cast<const char*>(event));
@@ -156,7 +159,7 @@
}
PP_Bool HandleDocumentLoad(PP_Instance instance, PP_Resource url_loader) {
- DebugPrintf("BrowserInstance::HandleDocumentLoad(%"NACL_PRId64")\n",
+ DebugPrintf("Browser::PPP_Instance::HandleDocumentLoad(%"NACL_PRId64")\n",
instance);
// TODO(sehr): implement HandleDocumentLoad.
UNREFERENCED_PARAMETER(instance);
@@ -165,7 +168,8 @@
}
PP_Var GetInstanceObject(PP_Instance instance) {
- DebugPrintf("BrowserInstance::GetInstanceObject(%"NACL_PRId64")\n", instance);
+ DebugPrintf("Browser::PPP_Instance::GetInstanceObject(%"NACL_PRId64")\n",
+ instance);
NaClSrpcChannel* channel = LookupBrowserPppForInstance(instance)->channel();
ObjectCapability capability;
uint32_t capability_bytes = static_cast<uint32_t>(sizeof(capability));
« no previous file with comments | « no previous file | src/shared/ppapi_proxy/browser_ppp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698