-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathutils.h
More file actions
32 lines (24 loc) · 927 Bytes
/
utils.h
File metadata and controls
32 lines (24 loc) · 927 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
#ifndef utils_h
#define utils_h
#include "include/v8-inspector.h"
namespace v8_inspector {
std::string GetMIMEType(std::string filePath);
std::string ToStdString(const v8_inspector::StringView& value);
v8::Local<v8::Function> GetDebuggerFunction(v8::Local<v8::Context> context, std::string domain, std::string functionName, v8::Local<v8::Object>& domainDebugger);
v8::Local<v8::Function> GetDebuggerFunctionFromObject(v8::Local<v8::Context> context, const v8::Local<v8::Object>& object, v8::Local<v8::Object>& domainDebugger);
class NetworkRequestData {
public:
NetworkRequestData(std::u16string data, bool hasTextContent): data_(data), hasTextContent_(hasTextContent) {
}
const char16_t* GetData() {
return this->data_.data();
}
const bool HasTextContent() {
return this->hasTextContent_;
}
private:
std::u16string data_;
bool hasTextContent_;
};
}
#endif /* utils_h */