summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 19:17:53 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-08 19:17:53 +0000
commit4df2d07343a0ffe94655a65163c4cd57a7c09347 (patch)
treeffdb9db61fc7f878187d2353234b80c743a57e30
parent16a14c711d9f5f4ecb8a1b715cebf1a3c734f123 (diff)
downloadchromium_src-4df2d07343a0ffe94655a65163c4cd57a7c09347.zip
chromium_src-4df2d07343a0ffe94655a65163c4cd57a7c09347.tar.gz
chromium_src-4df2d07343a0ffe94655a65163c4cd57a7c09347.tar.bz2
Pepper: Remove PPB_URLResponseInfo_API::GetData.
This function is unused. Found while refactoring FileRef to the "new" resource proxy model. Tested: Built chrome BUG= Review URL: https://chromiumcodereview.appspot.com/15018015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198962 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ppapi/proxy/url_response_info_resource.cc9
-rw-r--r--ppapi/proxy/url_response_info_resource.h1
-rw-r--r--ppapi/thunk/ppb_url_response_info_api.h5
3 files changed, 0 insertions, 15 deletions
diff --git a/ppapi/proxy/url_response_info_resource.cc b/ppapi/proxy/url_response_info_resource.cc
index 91c9990..85dae9a 100644
--- a/ppapi/proxy/url_response_info_resource.cc
+++ b/ppapi/proxy/url_response_info_resource.cc
@@ -69,14 +69,5 @@ PP_Resource URLResponseInfoResource::GetBodyAsFileRef() {
return body_as_file_ref_.get();
}
-URLResponseInfoData URLResponseInfoResource::GetData() {
- // One ref is passed to the caller if there's a file ref.
- if (body_as_file_ref_.get()) {
- PpapiGlobals::Get()->GetResourceTracker()->AddRefResource(
- body_as_file_ref_.get());
- }
- return data_;
-}
-
} // namespace proxy
} // namespace ppapi
diff --git a/ppapi/proxy/url_response_info_resource.h b/ppapi/proxy/url_response_info_resource.h
index d3902d8..f05b32c 100644
--- a/ppapi/proxy/url_response_info_resource.h
+++ b/ppapi/proxy/url_response_info_resource.h
@@ -36,7 +36,6 @@ class PPAPI_PROXY_EXPORT URLResponseInfoResource
// PPB_URLResponseInfo_API implementation.
virtual PP_Var GetProperty(PP_URLResponseProperty property) OVERRIDE;
virtual PP_Resource GetBodyAsFileRef() OVERRIDE;
- virtual URLResponseInfoData GetData() OVERRIDE;
private:
URLResponseInfoData data_;
diff --git a/ppapi/thunk/ppb_url_response_info_api.h b/ppapi/thunk/ppb_url_response_info_api.h
index b23847a..5fea9a3 100644
--- a/ppapi/thunk/ppb_url_response_info_api.h
+++ b/ppapi/thunk/ppb_url_response_info_api.h
@@ -17,11 +17,6 @@ class PPB_URLResponseInfo_API {
virtual PP_Var GetProperty(PP_URLResponseProperty property) = 0;
virtual PP_Resource GetBodyAsFileRef() = 0;
-
- // Internal function to get the internal data. This passes one plugin
- // reference to the caller for the file ref resource if body_as_file_ref is
- // non-null (meaning we're downloading to a file).
- virtual URLResponseInfoData GetData() = 0;
};
} // namespace thunk