| OLD | NEW |
| 1 // Copyright (c) 2012 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 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 CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_CLIPBOARD_MESSAGE_FILTE
R_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_CLIPBOARD_MESSAGE_FILTE
R_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_CLIPBOARD_MESSAGE_FILTE
R_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_CLIPBOARD_MESSAGE_FILTE
R_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // clipboard types for each custom clipboard format which may be a limited | 33 // clipboard types for each custom clipboard format which may be a limited |
| 34 // resource on a particular platform. | 34 // resource on a particular platform. |
| 35 class PepperFlashClipboardMessageFilter | 35 class PepperFlashClipboardMessageFilter |
| 36 : public ppapi::host::ResourceMessageFilter { | 36 : public ppapi::host::ResourceMessageFilter { |
| 37 public: | 37 public: |
| 38 PepperFlashClipboardMessageFilter(); | 38 PepperFlashClipboardMessageFilter(); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 // ppapi::host::ResourceMessageFilter overrides. | 41 // ppapi::host::ResourceMessageFilter overrides. |
| 42 virtual scoped_refptr<base::TaskRunner> OverrideTaskRunnerForMessage( | 42 virtual scoped_refptr<base::TaskRunner> OverrideTaskRunnerForMessage( |
| 43 const IPC::Message& msg) OVERRIDE; | 43 const IPC::Message& msg) override; |
| 44 virtual int32_t OnResourceMessageReceived( | 44 virtual int32_t OnResourceMessageReceived( |
| 45 const IPC::Message& msg, | 45 const IPC::Message& msg, |
| 46 ppapi::host::HostMessageContext* context) OVERRIDE; | 46 ppapi::host::HostMessageContext* context) override; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 virtual ~PepperFlashClipboardMessageFilter(); | 49 virtual ~PepperFlashClipboardMessageFilter(); |
| 50 | 50 |
| 51 int32_t OnMsgRegisterCustomFormat( | 51 int32_t OnMsgRegisterCustomFormat( |
| 52 ppapi::host::HostMessageContext* host_context, | 52 ppapi::host::HostMessageContext* host_context, |
| 53 const std::string& format_name); | 53 const std::string& format_name); |
| 54 int32_t OnMsgIsFormatAvailable(ppapi::host::HostMessageContext* host_context, | 54 int32_t OnMsgIsFormatAvailable(ppapi::host::HostMessageContext* host_context, |
| 55 uint32_t clipboard_type, | 55 uint32_t clipboard_type, |
| 56 uint32_t format); | 56 uint32_t format); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 69 ui::ScopedClipboardWriter* scw); | 69 ui::ScopedClipboardWriter* scw); |
| 70 | 70 |
| 71 ppapi::FlashClipboardFormatRegistry custom_formats_; | 71 ppapi::FlashClipboardFormatRegistry custom_formats_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(PepperFlashClipboardMessageFilter); | 73 DISALLOW_COPY_AND_ASSIGN(PepperFlashClipboardMessageFilter); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace chrome | 76 } // namespace chrome |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_CLIPBOARD_MESSAGE_FI
LTER_H_ | 78 #endif // CHROME_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FLASH_CLIPBOARD_MESSAGE_FI
LTER_H_ |
| OLD | NEW |