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

Unified Diff: ppapi/cpp/url_response_info.cc

Issue 9700088: Check for specific PPB interface versions in C++ wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix MouseInputEvent version check. Created 8 years, 9 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 | « ppapi/cpp/url_request_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/url_response_info.cc
diff --git a/ppapi/cpp/url_response_info.cc b/ppapi/cpp/url_response_info.cc
index a1e2d3a13f892a1721675b7a6c676820885891b6..032b40585ed3c7ffb93b9a572750be99304e2432 100644
--- a/ppapi/cpp/url_response_info.cc
+++ b/ppapi/cpp/url_response_info.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -12,8 +12,8 @@ namespace pp {
namespace {
-template <> const char* interface_name<PPB_URLResponseInfo>() {
- return PPB_URLRESPONSEINFO_INTERFACE;
+template <> const char* interface_name<PPB_URLResponseInfo_1_0>() {
+ return PPB_URLRESPONSEINFO_INTERFACE_1_0;
}
} // namespace
@@ -27,19 +27,19 @@ URLResponseInfo::URLResponseInfo(PassRef, PP_Resource resource)
}
Var URLResponseInfo::GetProperty(PP_URLResponseProperty property) const {
- if (!has_interface<PPB_URLResponseInfo>())
+ if (!has_interface<PPB_URLResponseInfo_1_0>())
return Var();
return Var(PASS_REF,
- get_interface<PPB_URLResponseInfo>()->GetProperty(pp_resource(),
- property));
+ get_interface<PPB_URLResponseInfo_1_0>()->GetProperty(pp_resource(),
+ property));
}
FileRef URLResponseInfo::GetBodyAsFileRef() const {
- if (!has_interface<PPB_URLResponseInfo>())
+ if (!has_interface<PPB_URLResponseInfo_1_0>())
return FileRef();
return FileRef(PASS_REF,
- get_interface<PPB_URLResponseInfo>()->GetBodyAsFileRef(
- pp_resource()));
+ get_interface<PPB_URLResponseInfo_1_0>()->GetBodyAsFileRef(
+ pp_resource()));
}
} // namespace pp
« no previous file with comments | « ppapi/cpp/url_request_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698