summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_resource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/pepper_resource.cc')
-rw-r--r--webkit/glue/plugins/pepper_resource.cc37
1 files changed, 0 insertions, 37 deletions
diff --git a/webkit/glue/plugins/pepper_resource.cc b/webkit/glue/plugins/pepper_resource.cc
deleted file mode 100644
index 851d6e7..0000000
--- a/webkit/glue/plugins/pepper_resource.cc
+++ /dev/null
@@ -1,37 +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/glue/plugins/pepper_resource.h"
-
-#include "base/logging.h"
-#include "webkit/glue/plugins/pepper_resource_tracker.h"
-
-namespace pepper {
-
-Resource::Resource(PluginModule* module)
- : resource_id_(0), module_(module) {
-}
-
-Resource::~Resource() {
-}
-
-PP_Resource Resource::GetReference() {
- ResourceTracker *tracker = ResourceTracker::Get();
- if (resource_id_)
- tracker->AddRefResource(resource_id_);
- else
- resource_id_ = tracker->AddResource(this);
- return resource_id_;
-}
-
-PP_Resource Resource::GetReferenceNoAddRef() const {
- return resource_id_;
-}
-
-void Resource::StoppedTracking() {
- DCHECK(resource_id_ != 0);
- resource_id_ = 0;
-}
-
-} // namespace pepper