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

Unified Diff: ppapi/shared_impl/ppb_url_util_shared.cc

Issue 8790004: Rename the shared impl files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 years 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/shared_impl/ppb_url_util_shared.h ('k') | ppapi/shared_impl/ppb_video_decoder_shared.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_url_util_shared.cc
diff --git a/ppapi/shared_impl/url_util_impl.cc b/ppapi/shared_impl/ppb_url_util_shared.cc
similarity index 83%
rename from ppapi/shared_impl/url_util_impl.cc
rename to ppapi/shared_impl/ppb_url_util_shared.cc
index fdccdb61f72d36168b5cc086e19f6dba3712bc3d..bdc4950fef431cfb9a372a1c80744ec3d1006760 100644
--- a/ppapi/shared_impl/url_util_impl.cc
+++ b/ppapi/shared_impl/ppb_url_util_shared.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ppapi/shared_impl/url_util_impl.h"
+#include "ppapi/shared_impl/ppb_url_util_shared.h"
#include "googleurl/src/gurl.h"
#include "ppapi/shared_impl/ppapi_globals.h"
@@ -43,8 +43,8 @@ void ConvertComponents(const url_parse::Parsed& input,
} // namespace
// static
-PP_Var URLUtilImpl::Canonicalize(PP_Var url,
- PP_URLComponents_Dev* components) {
+PP_Var PPB_URLUtil_Shared::Canonicalize(PP_Var url,
+ PP_URLComponents_Dev* components) {
StringVar* url_string = StringVar::FromPPVar(url);
if (!url_string)
return PP_MakeNull();
@@ -53,9 +53,10 @@ PP_Var URLUtilImpl::Canonicalize(PP_Var url,
}
// static
-PP_Var URLUtilImpl::ResolveRelativeToURL(PP_Var base_url,
- PP_Var relative,
- PP_URLComponents_Dev* components) {
+PP_Var PPB_URLUtil_Shared::ResolveRelativeToURL(
+ PP_Var base_url,
+ PP_Var relative,
+ PP_URLComponents_Dev* components) {
StringVar* base_url_string = StringVar::FromPPVar(base_url);
StringVar* relative_string = StringVar::FromPPVar(relative);
if (!base_url_string || !relative_string)
@@ -70,7 +71,7 @@ PP_Var URLUtilImpl::ResolveRelativeToURL(PP_Var base_url,
}
// static
-PP_Bool URLUtilImpl::IsSameSecurityOrigin(PP_Var url_a, PP_Var url_b) {
+PP_Bool PPB_URLUtil_Shared::IsSameSecurityOrigin(PP_Var url_a, PP_Var url_b) {
StringVar* url_a_string = StringVar::FromPPVar(url_a);
StringVar* url_b_string = StringVar::FromPPVar(url_b);
if (!url_a_string || !url_b_string)
@@ -86,16 +87,17 @@ PP_Bool URLUtilImpl::IsSameSecurityOrigin(PP_Var url_a, PP_Var url_b) {
// Used for returning the given GURL from a PPAPI function, with an optional
// out param indicating the components.
-PP_Var URLUtilImpl::GenerateURLReturn(PP_Module module,
- const GURL& url,
- PP_URLComponents_Dev* components) {
+PP_Var PPB_URLUtil_Shared::GenerateURLReturn(
+ PP_Module module,
+ const GURL& url,
+ PP_URLComponents_Dev* components) {
if (!url.is_valid())
return PP_MakeNull();
ConvertComponents(url.parsed_for_possibly_invalid_spec(), components);
return StringVar::StringToPPVar(module, url.possibly_invalid_spec());
}
-PP_Var URLUtilImpl::ConvertComponentsAndReturnURL(
+PP_Var PPB_URLUtil_Shared::ConvertComponentsAndReturnURL(
const PP_Var& url,
PP_URLComponents_Dev* components) {
if (!components)
« no previous file with comments | « ppapi/shared_impl/ppb_url_util_shared.h ('k') | ppapi/shared_impl/ppb_video_decoder_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698