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

Side by Side Diff: ppapi/shared_impl/resource_tracker.cc

Issue 7655002: Convert the pp::proxy namespace to the ppapi::proxy namespace. (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 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/shared_impl/resource_tracker.h" 5 #include "ppapi/shared_impl/resource_tracker.h"
6 6
7 #include "ppapi/shared_impl/id_assignment.h" 7 #include "ppapi/shared_impl/id_assignment.h"
8 #include "ppapi/shared_impl/resource.h" 8 #include "ppapi/shared_impl/resource.h"
9 9
10 namespace ppapi { 10 namespace ppapi {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 return new_id; 152 return new_id;
153 } 153 }
154 154
155 void ResourceTracker::RemoveResource(Resource* object) { 155 void ResourceTracker::RemoveResource(Resource* object) {
156 PP_Resource pp_resource = object->pp_resource(); 156 PP_Resource pp_resource = object->pp_resource();
157 if (object->pp_instance()) 157 if (object->pp_instance())
158 instance_map_[object->pp_instance()]->resources.erase(pp_resource); 158 instance_map_[object->pp_instance()]->resources.erase(pp_resource);
159 live_resources_.erase(pp_resource); 159 live_resources_.erase(pp_resource);
160 } 160 }
161 161
162
163 } // namespace ppapi 162 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698