OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // be found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_INSTANCE_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_INSTANCE_H_ |
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_INSTANCE_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_INSTANCE_H_ |
7 | 7 |
8 #include "native_client/src/include/nacl_macros.h" | 8 #include "native_client/src/include/nacl_macros.h" |
9 // Needed because ppp_instance.h does not include everything it needs. | 9 // Needed because ppp_instance.h does not include everything it needs. |
10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 #include "ppapi/c/ppp_instance.h" | 12 #include "ppapi/c/ppp_instance.h" |
13 | 13 |
14 namespace ppapi_proxy { | 14 namespace ppapi_proxy { |
15 | 15 |
16 // Implements the trusted side of the PPP_Instance interface. | 16 // Implements the trusted side of the PPP_Instance interface. |
17 class BrowserInstance { | 17 class BrowserInstance { |
18 public: | 18 public: |
19 static const PPP_Instance* GetInterface(); | 19 static const PPP_Instance* GetInterface(); |
20 | 20 |
21 private: | 21 private: |
22 NACL_DISALLOW_COPY_AND_ASSIGN(BrowserInstance); | 22 NACL_DISALLOW_COPY_AND_ASSIGN(BrowserInstance); |
23 }; | 23 }; |
24 | 24 |
25 } // namespace ppapi_proxy | 25 } // namespace ppapi_proxy |
26 | 26 |
27 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_INSTANCE_H_ | 27 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_BROWSER_INSTANCE_H_ |
OLD | NEW |