refactor: node::Environment self-cleanup (#39604)
* chore: savepoint * chore: turn raw_ptr tests back off
This commit is contained in:
parent
a8999bc529
commit
35969939a1
12 changed files with 95 additions and 83 deletions
|
@ -54,22 +54,6 @@ class JavascriptEnvironment {
|
|||
std::unique_ptr<MicrotasksRunner> microtasks_runner_;
|
||||
};
|
||||
|
||||
// Manage the Node Environment automatically.
|
||||
class NodeEnvironment {
|
||||
public:
|
||||
explicit NodeEnvironment(node::Environment* env);
|
||||
~NodeEnvironment();
|
||||
|
||||
// disable copy
|
||||
NodeEnvironment(const NodeEnvironment&) = delete;
|
||||
NodeEnvironment& operator=(const NodeEnvironment&) = delete;
|
||||
|
||||
node::Environment* env() { return env_; }
|
||||
|
||||
private:
|
||||
raw_ptr<node::Environment> env_;
|
||||
};
|
||||
|
||||
} // namespace electron
|
||||
|
||||
#endif // ELECTRON_SHELL_BROWSER_JAVASCRIPT_ENVIRONMENT_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue