| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ppapi/cpp/dev/url_util_dev.h" | 5 #include "ppapi/cpp/dev/url_util_dev.h" |
| 6 | 6 |
| 7 #include "ppapi/cpp/common.h" | 7 #include "ppapi/cpp/common.h" |
| 8 #include "ppapi/cpp/instance.h" | 8 #include "ppapi/cpp/instance.h" |
| 9 #include "ppapi/cpp/module.h" | 9 #include "ppapi/cpp/module.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 Var URLUtil_Dev::ResolveRelativeToURL(const Var& base_url, | 35 Var URLUtil_Dev::ResolveRelativeToURL(const Var& base_url, |
| 36 const Var& relative_string, | 36 const Var& relative_string, |
| 37 PP_URLComponents_Dev* components) const { | 37 PP_URLComponents_Dev* components) const { |
| 38 return Var(Var::PassRef(), | 38 return Var(Var::PassRef(), |
| 39 interface_->ResolveRelativeToURL(base_url.pp_var(), | 39 interface_->ResolveRelativeToURL(base_url.pp_var(), |
| 40 relative_string.pp_var(), | 40 relative_string.pp_var(), |
| 41 components)); | 41 components)); |
| 42 } | 42 } |
| 43 | 43 |
| 44 Var URLUtil_Dev::ResoveRelativeToDocument( | 44 Var URLUtil_Dev::ResolveRelativeToDocument( |
| 45 const Instance& instance, | 45 const Instance& instance, |
| 46 const Var& relative_string, | 46 const Var& relative_string, |
| 47 PP_URLComponents_Dev* components) const { | 47 PP_URLComponents_Dev* components) const { |
| 48 return Var(Var::PassRef(), | 48 return Var(Var::PassRef(), |
| 49 interface_->ResolveRelativeToDocument(instance.pp_instance(), | 49 interface_->ResolveRelativeToDocument(instance.pp_instance(), |
| 50 relative_string.pp_var(), | 50 relative_string.pp_var(), |
| 51 components)); | 51 components)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 bool URLUtil_Dev::IsSameSecurityOrigin(const Var& url_a, | 54 bool URLUtil_Dev::IsSameSecurityOrigin(const Var& url_a, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 70 target.pp_instance())); | 70 target.pp_instance())); |
| 71 } | 71 } |
| 72 | 72 |
| 73 Var URLUtil_Dev::GetDocumentURL(const Instance& instance, | 73 Var URLUtil_Dev::GetDocumentURL(const Instance& instance, |
| 74 PP_URLComponents_Dev* components) const { | 74 PP_URLComponents_Dev* components) const { |
| 75 return Var(Var::PassRef(), | 75 return Var(Var::PassRef(), |
| 76 interface_->GetDocumentURL(instance.pp_instance(), components)); | 76 interface_->GetDocumentURL(instance.pp_instance(), components)); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace pp | 79 } // namespace pp |
| OLD | NEW |