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

Unified Diff: webkit/plugins/ppapi/host_resource_tracker.cc

Issue 9015009: Use the new callback tracker and delete the old one (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add IsPending Created 8 years, 12 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 | « webkit/plugins/ppapi/host_resource_tracker.h ('k') | webkit/plugins/ppapi/plugin_module.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/host_resource_tracker.cc
diff --git a/webkit/plugins/ppapi/host_resource_tracker.cc b/webkit/plugins/ppapi/host_resource_tracker.cc
deleted file mode 100644
index 70b515712c64c5db141bb059b2670b8ba643b069..0000000000000000000000000000000000000000
--- a/webkit/plugins/ppapi/host_resource_tracker.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/plugins/ppapi/host_resource_tracker.h"
-
-#include "ppapi/shared_impl/resource.h"
-#include "webkit/plugins/ppapi/callbacks.h"
-#include "webkit/plugins/ppapi/plugin_module.h"
-#include "webkit/plugins/ppapi/resource_helper.h"
-
-namespace webkit {
-namespace ppapi {
-
-HostResourceTracker::HostResourceTracker() {
-}
-
-HostResourceTracker::~HostResourceTracker() {
-}
-
-void HostResourceTracker::LastPluginRefWasDeleted(::ppapi::Resource* object) {
- ::ppapi::ResourceTracker::LastPluginRefWasDeleted(object);
-
- // TODO(brettw) this should be removed when we have the callback tracker
- // moved to the shared_impl. This will allow the logic to post aborts for
- // any callbacks directly in the Resource::LastPluginRefWasDeleted function
- // and we can remove this function altogether.
- PluginModule* plugin_module = ResourceHelper::GetPluginModule(object);
- if (plugin_module) {
- plugin_module->GetCallbackTracker()->PostAbortForResource(
- object->pp_resource());
- }
-}
-
-} // namespace ppapi
-} // namespace webkit
« no previous file with comments | « webkit/plugins/ppapi/host_resource_tracker.h ('k') | webkit/plugins/ppapi/plugin_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698