Unify how listeners are handled

This commit is contained in:
Cheng Zhao 2015-12-11 21:02:44 +08:00
parent 9d406b695f
commit 79a627014c
2 changed files with 152 additions and 160 deletions

View file

@ -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;
};