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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // The caller retains the ownership of |print_client|. The client is | 64 // The caller retains the ownership of |print_client|. The client is |
65 // allowed to be set only once, and when set, the client must outlive the | 65 // allowed to be set only once, and when set, the client must outlive the |
66 // PPB_PDF_Impl instance. | 66 // PPB_PDF_Impl instance. |
67 static void SetPrintClient(PrintClient* print_client); | 67 static void SetPrintClient(PrintClient* print_client); |
68 | 68 |
69 int32_t OnResourceMessageReceived( | 69 int32_t OnResourceMessageReceived( |
70 const IPC::Message& msg, | 70 const IPC::Message& msg, |
71 ppapi::host::HostMessageContext* context) override; | 71 ppapi::host::HostMessageContext* context) override; |
72 | 72 |
73 private: | 73 private: |
74 int32_t OnHostMsgGetLocalizedString(ppapi::host::HostMessageContext* context, | |
75 PP_ResourceString string_id); | |
76 int32_t OnHostMsgDidStartLoading(ppapi::host::HostMessageContext* context); | 74 int32_t OnHostMsgDidStartLoading(ppapi::host::HostMessageContext* context); |
77 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context); | 75 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context); |
78 int32_t OnHostMsgSetContentRestriction( | 76 int32_t OnHostMsgSetContentRestriction( |
79 ppapi::host::HostMessageContext* context, | 77 ppapi::host::HostMessageContext* context, |
80 int restrictions); | 78 int restrictions); |
81 int32_t OnHostMsgUserMetricsRecordAction( | 79 int32_t OnHostMsgUserMetricsRecordAction( |
82 ppapi::host::HostMessageContext* context, | 80 ppapi::host::HostMessageContext* context, |
83 const std::string& action); | 81 const std::string& action); |
84 int32_t OnHostMsgHasUnsupportedFeature( | 82 int32_t OnHostMsgHasUnsupportedFeature( |
85 ppapi::host::HostMessageContext* context); | 83 ppapi::host::HostMessageContext* context); |
86 int32_t OnHostMsgPrint(ppapi::host::HostMessageContext* context); | 84 int32_t OnHostMsgPrint(ppapi::host::HostMessageContext* context); |
87 int32_t OnHostMsgSaveAs(ppapi::host::HostMessageContext* context); | 85 int32_t OnHostMsgSaveAs(ppapi::host::HostMessageContext* context); |
88 int32_t OnHostMsgSetSelectedText(ppapi::host::HostMessageContext* context, | 86 int32_t OnHostMsgSetSelectedText(ppapi::host::HostMessageContext* context, |
89 const base::string16& selected_text); | 87 const base::string16& selected_text); |
90 int32_t OnHostMsgSetLinkUnderCursor(ppapi::host::HostMessageContext* context, | 88 int32_t OnHostMsgSetLinkUnderCursor(ppapi::host::HostMessageContext* context, |
91 const std::string& url); | 89 const std::string& url); |
92 | 90 |
93 content::RendererPpapiHost* host_; | 91 content::RendererPpapiHost* host_; |
94 | 92 |
95 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); | 93 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); |
96 }; | 94 }; |
97 | 95 |
98 } // namespace pdf | 96 } // namespace pdf |
99 | 97 |
100 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ | 98 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ |
OLD | NEW |