Add ses.getUserAgent()/setUserAgent(...) APIs

This commit is contained in:
Cheng Zhao 2016-06-22 15:57:51 +09:00
parent 9c8e64f268
commit 01bc8305f8
7 changed files with 53 additions and 31 deletions

View file

@ -81,7 +81,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
void GoForward();
void GoToOffset(int offset);
bool IsCrashed() const;
void SetUserAgent(const std::string& user_agent);
void SetUserAgent(const std::string& user_agent, mate::Arguments* args);
std::string GetUserAgent();
void InsertCSS(const std::string& css);
bool SavePage(const base::FilePath& full_file_path,