OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ | 5 #ifndef COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ | 6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 class PepperPDFHost : public ppapi::host::ResourceHost { | 39 class PepperPDFHost : public ppapi::host::ResourceHost { |
40 public: | 40 public: |
41 PepperPDFHost(content::RendererPpapiHost* host, | 41 PepperPDFHost(content::RendererPpapiHost* host, |
42 PP_Instance instance, | 42 PP_Instance instance, |
43 PP_Resource resource); | 43 PP_Resource resource); |
44 virtual ~PepperPDFHost(); | 44 virtual ~PepperPDFHost(); |
45 | 45 |
46 virtual int32_t OnResourceMessageReceived( | 46 virtual int32_t OnResourceMessageReceived( |
47 const IPC::Message& msg, | 47 const IPC::Message& msg, |
48 ppapi::host::HostMessageContext* context) OVERRIDE; | 48 ppapi::host::HostMessageContext* context) override; |
49 | 49 |
50 private: | 50 private: |
51 int32_t OnHostMsgGetLocalizedString(ppapi::host::HostMessageContext* context, | 51 int32_t OnHostMsgGetLocalizedString(ppapi::host::HostMessageContext* context, |
52 PP_ResourceString string_id); | 52 PP_ResourceString string_id); |
53 int32_t OnHostMsgDidStartLoading(ppapi::host::HostMessageContext* context); | 53 int32_t OnHostMsgDidStartLoading(ppapi::host::HostMessageContext* context); |
54 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context); | 54 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context); |
55 int32_t OnHostMsgSetContentRestriction( | 55 int32_t OnHostMsgSetContentRestriction( |
56 ppapi::host::HostMessageContext* context, | 56 ppapi::host::HostMessageContext* context, |
57 int restrictions); | 57 int restrictions); |
58 int32_t OnHostMsgUserMetricsRecordAction( | 58 int32_t OnHostMsgUserMetricsRecordAction( |
(...skipping 21 matching lines...) Expand all Loading... |
80 uint32_t* out_byte_count); | 80 uint32_t* out_byte_count); |
81 | 81 |
82 content::RendererPpapiHost* host_; | 82 content::RendererPpapiHost* host_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); | 84 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace pdf | 87 } // namespace pdf |
88 | 88 |
89 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ | 89 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
OLD | NEW |