OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can be | |
4 * found in the LICENSE file. | |
5 */ | |
6 | |
7 #ifndef NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_URL_UTIL_H_ | |
8 #define NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_URL_UTIL_H_ | |
9 | |
10 #include "native_client/src/include/nacl_macros.h" | |
11 #include "ppapi/c/dev/ppb_url_util_dev.h" | |
12 | |
13 namespace fake_browser_ppapi { | |
14 | |
15 // Implements the PPB_URLUtil_Dev interface. | |
16 class URLUtil_Dev { | |
17 public: | |
18 explicit URLUtil_Dev(PP_Instance instance_id) | |
19 : instance_id_(instance_id) {} | |
20 | |
21 // Return an interface pointer usable by PPAPI. | |
22 static const struct PPB_URLUtil_Dev* GetInterface(); | |
23 | |
24 private: | |
25 PP_Instance instance_id_; | |
26 NACL_DISALLOW_COPY_AND_ASSIGN(URLUtil_Dev); | |
27 }; | |
28 | |
29 } // namespace fake_browser_ppapi | |
30 | |
31 #endif // NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_URL_UTIL_H_ | |
OLD | NEW |