forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstorage_agent.h
More file actions
33 lines (25 loc) · 920 Bytes
/
Copy pathstorage_agent.h
File metadata and controls
33 lines (25 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef SRC_INSPECTOR_STORAGE_AGENT_H_
#define SRC_INSPECTOR_STORAGE_AGENT_H_
#include "env.h"
#include "node/inspector/protocol/Storage.h"
namespace node {
namespace inspector {
namespace protocol {
class StorageAgent : public protocol::Storage::Backend {
public:
explicit StorageAgent(Environment* env);
~StorageAgent() override;
void Wire(protocol::UberDispatcher* dispatcher);
DispatchResponse getStorageKey(std::optional<protocol::String> frameId,
protocol::String* storageKey) override;
StorageAgent(const StorageAgent&) = delete;
StorageAgent& operator=(const StorageAgent&) = delete;
private:
std::string to_absolute_path(const std::filesystem::path& input);
std::unique_ptr<protocol::Storage::Frontend> frontend_;
Environment* env_;
};
} // namespace protocol
} // namespace inspector
} // namespace node
#endif // SRC_INSPECTOR_STORAGE_AGENT_H_