Implement devtools preference interfaces.

This commit is contained in:
Haojian Wu 2015-08-06 13:39:23 +08:00 committed by Cheng Zhao
parent 6171ab8f6b
commit f82ab5f193
4 changed files with 41 additions and 0 deletions

View file

@ -73,6 +73,11 @@ class DevToolsEmbedderMessageDispatcher {
virtual void SendJsonRequest(const DispatchCallback& callback,
const std::string& browser_id,
const std::string& url) = 0;
virtual void GetPreferences(const DispatchCallback& callback) = 0;
virtual void SetPreference(const std::string& name,
const std::string& value) = 0;
virtual void RemovePreference(const std::string& name) = 0;
virtual void ClearPreferences() = 0;
};
using DispatchCallback = Delegate::DispatchCallback;