OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SYNC_JS_JS_REPLY_HANDLER_H_ | |
6 #define SYNC_JS_JS_REPLY_HANDLER_H_ | |
7 | |
8 // See README.js for design comments. | |
9 | |
10 #include <string> | |
11 | |
12 namespace syncer { | |
13 | |
14 class JsArgList; | |
15 | |
16 // An interface for objects that handle Javascript message replies | |
17 // (e.g., WebUIs). | |
18 class JsReplyHandler { | |
19 public: | |
20 virtual void HandleJsReply( | |
21 const std::string& name, const JsArgList& args) = 0; | |
22 | |
23 protected: | |
24 virtual ~JsReplyHandler() {} | |
25 }; | |
26 | |
27 } // namespace syncer | |
28 | |
29 #endif // SYNC_JS_JS_REPLY_HANDLER_H_ | |
OLD | NEW |