Rev 1625 | Rev 1947 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1625 | Rev 1647 | ||
|---|---|---|---|
| Line 44... | Line 44... | ||
| 44 | 44 | ||
| 45 | std::string GetName(); |
45 | std::string GetName(); |
| 46 | ExportFunctionList& GetExportFunctions(); |
46 | ExportFunctionList& GetExportFunctions(); |
| 47 | 47 | ||
| 48 | virtual void InitializeDone(); |
48 | virtual void InitializeDone(); |
| 49 | virtual void |
49 | virtual void CallOutput(unsigned int request_id, std::string output); |
| 50 | 50 | ||
| 51 | protected: |
51 | protected: |
| 52 | typedef boost::shared_ptr<char> TrackerPointer; |
52 | typedef boost::shared_ptr<char> TrackerPointer; |
| 53 | 53 | ||
| 54 | std::string name_; |
54 | std::string name_; |
| 55 | TrackerPointer tracker_; |
55 | TrackerPointer tracker_; |
| 56 | boost::asio::io_service& io_service_; |
56 | boost::asio::io_service& io_service_; |
| 57 | 57 | ||
| 58 |
|
58 | bool Call(unsigned int request_id, std::string name, ArgumentListPointer arguments); |
| 59 | void Execute(unsigned int request_id, std::string code); |
59 | void Execute(unsigned int request_id, std::string code); |
| 60 | void ExportFunction(std::string name, v8::InvocationCallback function); |
60 | void ExportFunction(std::string name, v8::InvocationCallback function); |
| 61 | static bool ImportFunction(std::string name); |
61 | static bool ImportFunction(std::string name); |
| 62 | 62 | ||
| 63 | private: |
63 | private: |