electron/brightray/browser/inspectable_web_contents_delegate.h

38 lines
1.5 KiB
C
Raw Normal View History

#ifndef BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
#define BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_
2014-03-04 08:12:02 +00:00
#include <string>
#include "base/files/file_path.h"
2014-03-04 08:12:02 +00:00
namespace brightray {
class InspectableWebContentsDelegate {
public:
virtual ~InspectableWebContentsDelegate() {}
// Requested by WebContents of devtools.
2016-04-12 07:35:35 +00:00
virtual void DevToolsReloadPage() {}
2018-04-18 01:46:27 +00:00
virtual void DevToolsSaveToFile(const std::string& url,
const std::string& content,
bool save_as) {}
virtual void DevToolsAppendToFile(const std::string& url,
const std::string& content) {}
virtual void DevToolsRequestFileSystems() {}
virtual void DevToolsAddFileSystem(const std::string& type,
const base::FilePath& file_system_path) {}
2015-06-04 16:51:23 +00:00
virtual void DevToolsRemoveFileSystem(
const base::FilePath& file_system_path) {}
2018-04-18 01:46:27 +00:00
virtual void DevToolsIndexPath(int request_id,
const std::string& file_system_path,
const std::string& excluded_folders) {}
virtual void DevToolsStopIndexing(int request_id) {}
2018-04-18 01:46:27 +00:00
virtual void DevToolsSearchInPath(int request_id,
const std::string& file_system_path,
const std::string& query) {}
2014-03-04 08:12:02 +00:00
};
} // namespace brightray
#endif // BRIGHTRAY_BROWSER_INSPECTABLE_WEB_CONTENTS_DELEGATE_H_