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

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

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/resource.h ('k') | webkit/plugins/ppapi/resource_creation_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/resource.cc
diff --git a/webkit/plugins/ppapi/resource.cc b/webkit/plugins/ppapi/resource.cc
deleted file mode 100644
index a84e1d30d50eaec80b476d1a6cc9861333ed64f7..0000000000000000000000000000000000000000
--- a/webkit/plugins/ppapi/resource.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2010 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/resource.h"
-
-#include "base/logging.h"
-#include "webkit/plugins/ppapi/callbacks.h"
-#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
-#include "webkit/plugins/ppapi/plugin_module.h"
-#include "webkit/plugins/ppapi/resource_tracker.h"
-
-namespace webkit {
-namespace ppapi {
-
-Resource::Resource(PluginInstance* instance)
- : ::ppapi::Resource(instance->pp_instance()),
- instance_(instance) {
-}
-
-Resource::~Resource() {
-}
-
-PP_Resource Resource::GetReference() {
- ResourceTracker* tracker = ResourceTracker::Get();
- tracker->AddRefResource(pp_resource());
- return pp_resource();
-}
-
-void Resource::LastPluginRefWasDeleted() {
- instance()->module()->GetCallbackTracker()->PostAbortForResource(
- pp_resource());
-}
-
-void Resource::InstanceWasDeleted() {
- ::ppapi::Resource::InstanceWasDeleted();
- instance_ = NULL;
-}
-
-} // namespace ppapi
-} // namespace webkit
-
« no previous file with comments | « webkit/plugins/ppapi/resource.h ('k') | webkit/plugins/ppapi/resource_creation_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698