chore: used nested namespaces (#34737)
This commit is contained in:
parent
0d4e417594
commit
5d120359f6
122 changed files with 246 additions and 738 deletions
|
@ -8,11 +8,7 @@
|
|||
|
||||
#include "shell/common/api/object_life_monitor.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
namespace api {
|
||||
|
||||
namespace context_bridge {
|
||||
namespace electron::api::context_bridge {
|
||||
|
||||
ObjectCache::ObjectCache() = default;
|
||||
ObjectCache::~ObjectCache() = default;
|
||||
|
@ -50,8 +46,4 @@ v8::MaybeLocal<v8::Value> ObjectCache::GetCachedProxiedObject(
|
|||
return v8::MaybeLocal<v8::Value>();
|
||||
}
|
||||
|
||||
} // namespace context_bridge
|
||||
|
||||
} // namespace api
|
||||
|
||||
} // namespace electron
|
||||
} // namespace electron::api::context_bridge
|
||||
|
|
|
@ -15,11 +15,7 @@
|
|||
#include "shell/renderer/electron_render_frame_observer.h"
|
||||
#include "third_party/blink/public/web/web_local_frame.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
namespace api {
|
||||
|
||||
namespace context_bridge {
|
||||
namespace electron::api::context_bridge {
|
||||
|
||||
using ObjectCachePair = std::pair<v8::Local<v8::Value>, v8::Local<v8::Value>>;
|
||||
|
||||
|
@ -38,10 +34,6 @@ class ObjectCache final {
|
|||
std::unordered_map<int, std::forward_list<ObjectCachePair>> proxy_map_;
|
||||
};
|
||||
|
||||
} // namespace context_bridge
|
||||
|
||||
} // namespace api
|
||||
|
||||
} // namespace electron
|
||||
} // namespace electron::api::context_bridge
|
||||
|
||||
#endif // ELECTRON_SHELL_RENDERER_API_CONTEXT_BRIDGE_OBJECT_CACHE_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue