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

Side by Side Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 6711047: Fix up some types in the API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: static_cast and header order 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
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.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) 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 "webkit/plugins/ppapi/plugin_module.h" 5 #include "webkit/plugins/ppapi/plugin_module.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 DLOG(WARNING) << "AddRefResource()ing a nonexistent resource"; 130 DLOG(WARNING) << "AddRefResource()ing a nonexistent resource";
131 } 131 }
132 } 132 }
133 133
134 void ReleaseResource(PP_Resource resource) { 134 void ReleaseResource(PP_Resource resource) {
135 if (!ResourceTracker::Get()->UnrefResource(resource)) { 135 if (!ResourceTracker::Get()->UnrefResource(resource)) {
136 DLOG(WARNING) << "ReleaseResource()ing a nonexistent resource"; 136 DLOG(WARNING) << "ReleaseResource()ing a nonexistent resource";
137 } 137 }
138 } 138 }
139 139
140 void* MemAlloc(size_t num_bytes) { 140 void* MemAlloc(uint32_t num_bytes) {
141 return malloc(num_bytes); 141 return malloc(num_bytes);
142 } 142 }
143 143
144 void MemFree(void* ptr) { 144 void MemFree(void* ptr) {
145 free(ptr); 145 free(ptr);
146 } 146 }
147 147
148 double GetTime() { 148 double GetTime() {
149 return base::Time::Now().ToDoubleT(); 149 return base::Time::Now().ToDoubleT();
150 } 150 }
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 if (retval != 0) { 529 if (retval != 0) {
530 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 530 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
531 return false; 531 return false;
532 } 532 }
533 return true; 533 return true;
534 } 534 }
535 535
536 } // namespace ppapi 536 } // namespace ppapi
537 } // namespace webkit 537 } // namespace webkit
538 538
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698