Merge pull request #1970 from deepak1556/scheme_patch

protocol: api to register custom schemes to standard schemes
This commit is contained in:
Cheng Zhao 2015-06-19 16:16:46 +08:00
commit 49e1316f7f
8 changed files with 47 additions and 0 deletions

View file

@ -7,6 +7,7 @@
#include <string>
#include <map>
#include <vector>
#include "atom/browser/api/event_emitter.h"
#include "base/callback.h"
@ -45,6 +46,9 @@ class Protocol : public mate::EventEmitter {
private:
typedef std::map<std::string, JsProtocolHandler> ProtocolHandlersMap;
// Register schemes to standard scheme list.
void RegisterStandardSchemes(const std::vector<std::string>& schemes);
// Register/unregister an networking |scheme| which would be handled by
// |callback|.
void RegisterProtocol(v8::Isolate* isolate,