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 #ifndef PPAPI_CPP_DEV_URL_UTIL_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_URL_UTIL_DEV_H_ |
6 #define PPAPI_CPP_DEV_URL_UTIL_DEV_H_ | 6 #define PPAPI_CPP_DEV_URL_UTIL_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_url_util_dev.h" | 8 #include "ppapi/c/dev/ppb_url_util_dev.h" |
9 #include "ppapi/cpp/var.h" | 9 #include "ppapi/cpp/var.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 bool IsSameSecurityOrigin(const Var& url_a, const Var& url_b) const; | 35 bool IsSameSecurityOrigin(const Var& url_a, const Var& url_b) const; |
36 bool DocumentCanRequest(const InstanceHandle& instance, const Var& url) const; | 36 bool DocumentCanRequest(const InstanceHandle& instance, const Var& url) const; |
37 bool DocumentCanAccessDocument(const InstanceHandle& active, | 37 bool DocumentCanAccessDocument(const InstanceHandle& active, |
38 const InstanceHandle& target) const; | 38 const InstanceHandle& target) const; |
39 Var GetDocumentURL(const InstanceHandle& instance, | 39 Var GetDocumentURL(const InstanceHandle& instance, |
40 PP_URLComponents_Dev* components = NULL) const; | 40 PP_URLComponents_Dev* components = NULL) const; |
41 | 41 |
42 Var GetPluginInstanceURL(const InstanceHandle& instance, | 42 Var GetPluginInstanceURL(const InstanceHandle& instance, |
43 PP_URLComponents_Dev* components = NULL) const; | 43 PP_URLComponents_Dev* components = NULL) const; |
| 44 Var GetPluginReferrerURL(const InstanceHandle& instance, |
| 45 PP_URLComponents_Dev* components = NULL) const; |
44 | 46 |
45 private: | 47 private: |
46 URLUtil_Dev() : interface_(NULL) {} | 48 URLUtil_Dev() : interface_(NULL) {} |
47 | 49 |
48 // Copy and assignment are disallowed. | 50 // Copy and assignment are disallowed. |
49 URLUtil_Dev(const URLUtil_Dev& other); | 51 URLUtil_Dev(const URLUtil_Dev& other); |
50 URLUtil_Dev& operator=(const URLUtil_Dev& other); | 52 URLUtil_Dev& operator=(const URLUtil_Dev& other); |
51 | 53 |
52 const PPB_URLUtil_Dev* interface_; | 54 const PPB_URLUtil_Dev* interface_; |
53 }; | 55 }; |
54 | 56 |
55 } // namespace pp | 57 } // namespace pp |
56 | 58 |
57 #endif // PPAPI_CPP_DEV_URL_UTIL_DEV_H_ | 59 #endif // PPAPI_CPP_DEV_URL_UTIL_DEV_H_ |
OLD | NEW |