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

Side by Side Diff: ppapi/proxy/ppb_core_proxy.cc

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mo' fixes Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ppapi/proxy/ppb_core_proxy.h" 5 #include "ppapi/proxy/ppb_core_proxy.h"
6 6
7 #include <stdlib.h> // For malloc 7 #include <stdlib.h> // For malloc
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 void AddRefResource(PP_Resource resource) { 31 void AddRefResource(PP_Resource resource) {
32 PluginResourceTracker::GetInstance()->AddRefResource(resource); 32 PluginResourceTracker::GetInstance()->AddRefResource(resource);
33 } 33 }
34 34
35 void ReleaseResource(PP_Resource resource) { 35 void ReleaseResource(PP_Resource resource) {
36 PluginResourceTracker::GetInstance()->ReleaseResource(resource); 36 PluginResourceTracker::GetInstance()->ReleaseResource(resource);
37 } 37 }
38 38
39 void* MemAlloc(size_t num_bytes) { 39 void* MemAlloc(uint32_t num_bytes) {
40 return malloc(num_bytes); 40 return malloc(num_bytes);
41 } 41 }
42 42
43 void MemFree(void* ptr) { 43 void MemFree(void* ptr) {
44 free(ptr); 44 free(ptr);
45 } 45 }
46 46
47 double GetTime() { 47 double GetTime() {
48 return base::Time::Now().ToDoubleT(); 48 return base::Time::Now().ToDoubleT();
49 } 49 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void PPB_Core_Proxy::OnMsgAddRefResource(HostResource resource) { 122 void PPB_Core_Proxy::OnMsgAddRefResource(HostResource resource) {
123 ppb_core_target()->AddRefResource(resource.host_resource()); 123 ppb_core_target()->AddRefResource(resource.host_resource());
124 } 124 }
125 125
126 void PPB_Core_Proxy::OnMsgReleaseResource(HostResource resource) { 126 void PPB_Core_Proxy::OnMsgReleaseResource(HostResource resource) {
127 ppb_core_target()->ReleaseResource(resource.host_resource()); 127 ppb_core_target()->ReleaseResource(resource.host_resource());
128 } 128 }
129 129
130 } // namespace proxy 130 } // namespace proxy
131 } // namespace pp 131 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698