inspectable_web_contents_delegate.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
  2. #define BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
  3. #include <string>
  4. namespace brightray {
  5. class InspectableWebContentsDelegate {
  6. public:
  7. virtual ~InspectableWebContentsDelegate() {}
  8. // Requested by WebContents of devtools.
  9. virtual void DevToolsReloadPage() {}
  10. virtual void DevToolsSaveToFile(const std::string& url,
  11. const std::string& content,
  12. bool save_as) {}
  13. virtual void DevToolsAppendToFile(const std::string& url,
  14. const std::string& content) {}
  15. virtual void DevToolsRequestFileSystems() {}
  16. virtual void DevToolsAddFileSystem(const base::FilePath& file_system_path) {}
  17. virtual void DevToolsRemoveFileSystem(
  18. const base::FilePath& file_system_path) {}
  19. virtual void DevToolsIndexPath(int request_id,
  20. const std::string& file_system_path) {}
  21. virtual void DevToolsStopIndexing(int request_id) {}
  22. virtual void DevToolsSearchInPath(int request_id,
  23. const std::string& file_system_path,
  24. const std::string& query) {}
  25. };
  26. } // namespace brightray
  27. #endif // BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_