| 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_PROXY_PPB_FONT_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FONT_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_FONT_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FONT_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "ppapi/proxy/interface_proxy.h" | 10 #include "ppapi/proxy/interface_proxy.h" |
| 11 #include "ppapi/shared_impl/function_group_base.h" | 11 #include "ppapi/shared_impl/function_group_base.h" |
| 12 #include "ppapi/shared_impl/host_resource.h" | 12 #include "ppapi/shared_impl/host_resource.h" |
| 13 #include "ppapi/shared_impl/resource.h" | 13 #include "ppapi/shared_impl/resource.h" |
| 14 #include "ppapi/shared_impl/webkit_forwarding.h" | 14 #include "ppapi/shared_impl/webkit_forwarding.h" |
| 15 #include "ppapi/thunk/ppb_font_api.h" | 15 #include "ppapi/thunk/ppb_font_api.h" |
| 16 | 16 |
| 17 struct PPB_Font_Dev; | 17 struct PPB_Font_Dev; |
| 18 | 18 |
| 19 namespace ppapi { | 19 namespace ppapi { |
| 20 namespace proxy { | 20 namespace proxy { |
| 21 | 21 |
| 22 class SerializedVarReturnValue; | |
| 23 | |
| 24 class PPB_Font_Proxy : public InterfaceProxy, | 22 class PPB_Font_Proxy : public InterfaceProxy, |
| 25 public ppapi::thunk::PPB_Font_FunctionAPI { | 23 public ppapi::thunk::PPB_Font_FunctionAPI { |
| 26 public: | 24 public: |
| 27 PPB_Font_Proxy(Dispatcher* dispatcher); | 25 explicit PPB_Font_Proxy(Dispatcher* dispatcher); |
| 28 virtual ~PPB_Font_Proxy(); | 26 virtual ~PPB_Font_Proxy(); |
| 29 | 27 |
| 30 // FunctionGroupBase overrides. | 28 // FunctionGroupBase overrides. |
| 31 virtual ppapi::thunk::PPB_Font_FunctionAPI* AsPPB_Font_FunctionAPI() OVERRIDE; | 29 virtual ppapi::thunk::PPB_Font_FunctionAPI* AsPPB_Font_FunctionAPI() OVERRIDE; |
| 32 | 30 |
| 33 // PPB_Font_FunctionAPI implementation. | 31 // PPB_Font_FunctionAPI implementation. |
| 34 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; | 32 virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; |
| 35 | 33 |
| 36 // InterfaceProxy implementation. | 34 // InterfaceProxy implementation. |
| 37 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 35 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // destruction). | 85 // destruction). |
| 88 ppapi::WebKitForwarding::Font* font_forwarding_; | 86 ppapi::WebKitForwarding::Font* font_forwarding_; |
| 89 | 87 |
| 90 DISALLOW_COPY_AND_ASSIGN(Font); | 88 DISALLOW_COPY_AND_ASSIGN(Font); |
| 91 }; | 89 }; |
| 92 | 90 |
| 93 } // namespace proxy | 91 } // namespace proxy |
| 94 } // namespace ppapi | 92 } // namespace ppapi |
| 95 | 93 |
| 96 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ | 94 #endif // PPAPI_PROXY_PPB_FONT_PROXY_H_ |
| OLD | NEW |