Unify how listeners are handled
This commit is contained in:
parent
9d406b695f
commit
79a627014c
2 changed files with 152 additions and 160 deletions
|
@ -22,6 +22,8 @@ class URLPattern;
|
|||
|
||||
namespace atom {
|
||||
|
||||
using URLPatterns = std::set<extensions::URLPattern>;
|
||||
|
||||
class AtomNetworkDelegate : public brightray::NetworkDelegate {
|
||||
public:
|
||||
struct BlockingResponse;
|
||||
|
@ -41,7 +43,7 @@ class AtomNetworkDelegate : public brightray::NetworkDelegate {
|
|||
};
|
||||
|
||||
struct ListenerInfo {
|
||||
std::set<extensions::URLPattern> url_patterns;
|
||||
URLPatterns url_patterns;
|
||||
AtomNetworkDelegate::Listener callback;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue