Index: remoting/host/plugin/host_script_object.h |
diff --git a/remoting/host/plugin/host_script_object.h b/remoting/host/plugin/host_script_object.h |
index 9e7110e0d0ddaeb55b62c1b8303c2ce3f5e01735..b58623cedf4c7d10507b7fd8b09dad2e43770510 100644 |
--- a/remoting/host/plugin/host_script_object.h |
+++ b/remoting/host/plugin/host_script_object.h |
@@ -214,12 +214,22 @@ class HostNPScriptObject : public HostStatusObserver { |
void LocalizeStrings(NPObject* localize_func); |
// Helper function for executing InvokeDefault on an NPObject that performs |
- // a string->string mapping with one optional substitution parameter. Stores |
- // the translation in |result| and returns true on success, or leaves it |
- // unchanged and returns false on failure. |
+ // a string->string mapping without substitution. Stores the translation in |
+ // |result| and returns true on success, or leaves it unchanged and returns |
+ // false on failure. |
bool LocalizeString(NPObject* localize_func, const char* tag, |
string16* result); |
+ // Helper function for executing InvokeDefault on an NPObject that performs |
+ // a string->string mapping with up to 9 substitutions of the strings $1 to |
+ // $9. Stores the translation in |result| and returns true on success, or |
+ // leaves it unchanged and returns false on failure. |
+ bool LocalizeStringWithSubstitutions(NPObject* localize_func, |
+ const char* tag, |
+ const char** substitutions, |
+ int number_of_substitutions, |
+ string16* result); |
+ |
// If the web-app has registered a callback to be notified of changes to the |
// NAT traversal policy, notify it. |
void UpdateWebappNatPolicy(bool nat_traversal_enabled); |