| 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 |
| 11 namespace pp { | 11 namespace pp { |
| 12 | 12 |
| 13 class Instance; | 13 class Instance; |
| 14 class Module; | |
| 15 | 14 |
| 16 // Simple wrapper around the PPB_URLUtil interface. | 15 // Simple wrapper around the PPB_URLUtil interface. |
| 17 class URLUtil_Dev { | 16 class URLUtil_Dev { |
| 18 public: | 17 public: |
| 19 // This class is just a collection of random functions that aren't | 18 // This class is just a collection of random functions that aren't |
| 20 // particularly attached to anything. So this getter returns a cached | 19 // particularly attached to anything. So this getter returns a cached |
| 21 // instance of this interface. This may return NULL if the browser doesn't | 20 // instance of this interface. This may return NULL if the browser doesn't |
| 22 // support the URLUtil inteface. Since this is a singleton, don't delete the | 21 // support the URLUtil inteface. Since this is a singleton, don't delete the |
| 23 // pointer. | 22 // pointer. |
| 24 static const URLUtil_Dev* Get(); | 23 static const URLUtil_Dev* Get(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 49 // Copy and assignment are disallowed. | 48 // Copy and assignment are disallowed. |
| 50 URLUtil_Dev(const URLUtil_Dev& other); | 49 URLUtil_Dev(const URLUtil_Dev& other); |
| 51 URLUtil_Dev& operator=(const URLUtil_Dev& other); | 50 URLUtil_Dev& operator=(const URLUtil_Dev& other); |
| 52 | 51 |
| 53 const PPB_URLUtil_Dev* interface_; | 52 const PPB_URLUtil_Dev* interface_; |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 } // namespace pp | 55 } // namespace pp |
| 57 | 56 |
| 58 #endif // PPAPI_CPP_DEV_URL_UTIL_DEV_H_ | 57 #endif // PPAPI_CPP_DEV_URL_UTIL_DEV_H_ |
| 59 | |
| OLD | NEW |