| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The Native Client Authors. All rights reserved. | 2 * Copyright 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 class NaClCommandLoop; | 13 class NaClCommandLoop; |
| 14 | 14 |
| 15 // Log all PPAPI events to given file for later playback. | 15 // Log all PPAPI events to given file for later playback. |
| 16 // This will take effect after HandlerSDLEventLoop is called. | 16 // This will take effect after HandlerSDLEventLoop is called. |
| 17 // Note: the emitted file will contain non-standard PPAPI events | 17 // Note: the emitted file will contain non-standard PPAPI events |
| 18 // for synchronization purposes. | 18 // for synchronization purposes. |
| 19 void RecordPPAPIEvents(std::string filename); | 19 void RecordPPAPIEvents(std::string filename); |
| 20 | 20 |
| 21 // Ignore user events and instead play back PPAPI events from the given file, | 21 // Ignore user events and instead play back PPAPI events from the given file, |
| 22 // which must have been generared via RecordPPAPIEvents() | 22 // which must have been generared via RecordPPAPIEvents() |
| 23 // This will take effect after HandlerSDLEventLoop is called | 23 // This will take effect after HandlerSDLEventLoop is called |
| 24 void ReplayPPAPIEvents(std::string filename); | 24 void ReplayPPAPIEvents(std::string filename); |
| 25 | 25 |
| 26 | 26 |
| 27 // initialize multimedia (SDL) subsystem | 27 // initialize multimedia (SDL) subsystem |
| 28 bool HandlerSDLInitialize(NaClCommandLoop* ncl, | 28 bool HandlerPepperEmuInitialize(NaClCommandLoop* ncl, |
| 29 const std::vector<std::string>& args); | 29 const std::vector<std::string>& args); |
| 30 | 30 |
| 31 // start multimedia event loop | 31 // start multimedia event loop |
| 32 bool HandlerSDLEventLoop(NaClCommandLoop* ncl, | 32 bool HandlerPepperEmuEventLoop(NaClCommandLoop* ncl, |
| 33 const std::vector<std::string>& args); | 33 const std::vector<std::string>& args); |
| 34 | 34 |
| 35 | 35 |
| 36 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ */ | 36 #endif /* NATIVE_CLIENT_SRC_TRUSTED_SEL_UNIVERASAL_MULTIMEDIA_HANDLER_H_ */ |
| OLD | NEW |