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..00e4a012e7da7cd8667b4a2b6e5f31a6759fe482 100644 |
--- a/remoting/host/plugin/host_script_object.h |
+++ b/remoting/host/plugin/host_script_object.h |
@@ -214,12 +214,21 @@ 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 one substitution. Stores the translation in |
+ // |result| and returns true on success, or leaves it unchanged and returns |
+ // false on failure. |
+ bool LocalizeStringWithSubstitution(NPObject* localize_func, |
+ const char* tag, |
+ const char* substitution, |
+ 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); |