OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PDF_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_PDF_RESOURCE_H_ |
6 #define PPAPI_PROXY_PDF_RESOURCE_H_ | 6 #define PPAPI_PROXY_PDF_RESOURCE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
11 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
12 #include "ppapi/proxy/connection.h" | 12 #include "ppapi/proxy/connection.h" |
13 #include "ppapi/proxy/plugin_resource.h" | 13 #include "ppapi/proxy/plugin_resource.h" |
14 #include "ppapi/proxy/ppapi_proxy_export.h" | 14 #include "ppapi/proxy/ppapi_proxy_export.h" |
15 #include "ppapi/thunk/ppb_pdf_api.h" | 15 #include "ppapi/thunk/ppb_pdf_api.h" |
16 | 16 |
17 namespace ppapi { | 17 namespace ppapi { |
18 namespace proxy { | 18 namespace proxy { |
19 | 19 |
20 class PluginDispatcher; | |
21 | |
22 class PPAPI_PROXY_EXPORT PDFResource | 20 class PPAPI_PROXY_EXPORT PDFResource |
23 : public PluginResource, | 21 : public PluginResource, |
24 public thunk::PPB_PDF_API { | 22 public thunk::PPB_PDF_API { |
25 public: | 23 public: |
26 PDFResource(Connection connection, PP_Instance instance); | 24 PDFResource(Connection connection, PP_Instance instance); |
27 ~PDFResource() override; | 25 ~PDFResource() override; |
28 | 26 |
29 // For unittesting with a given locale. | 27 // For unittesting with a given locale. |
30 void SetLocaleForTest(const std::string& locale) { | 28 void SetLocaleForTest(const std::string& locale) { |
31 locale_ = locale; | 29 locale_ = locale; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 private: | 65 private: |
68 std::string locale_; | 66 std::string locale_; |
69 | 67 |
70 DISALLOW_COPY_AND_ASSIGN(PDFResource); | 68 DISALLOW_COPY_AND_ASSIGN(PDFResource); |
71 }; | 69 }; |
72 | 70 |
73 } // namespace proxy | 71 } // namespace proxy |
74 } // namespace ppapi | 72 } // namespace ppapi |
75 | 73 |
76 #endif // PPAPI_PROXY_PDF_RESOURCE_H_ | 74 #endif // PPAPI_PROXY_PDF_RESOURCE_H_ |
OLD | NEW |