Add webFrame.setIsolatedWorldSecurityOrigin
Move vector to cc file
Map executed javascript in isolated world to url
Some 💅
Documentation
Use WebSource[] as argument in executeJavaScriptInIsolatedWorld
Refactor and lint with @poiru’s comments
Remove duplicate call
Typo
Lint
This commit is contained in:
parent
389edb6229
commit
ae7b96991c
4 changed files with 82 additions and 13 deletions
|
@ -19,6 +19,7 @@ class WebLocalFrame;
|
|||
}
|
||||
|
||||
namespace mate {
|
||||
class Dictionary;
|
||||
class Arguments;
|
||||
}
|
||||
|
||||
|
@ -72,15 +73,19 @@ class WebFrame : public mate::Wrappable<WebFrame> {
|
|||
void InsertText(const std::string& text);
|
||||
void InsertCSS(const std::string& css);
|
||||
|
||||
// Excecuting scripts.
|
||||
// Executing scripts.
|
||||
void ExecuteJavaScript(const base::string16& code, mate::Arguments* args);
|
||||
void ExecuteJavaScriptInIsolatedWorld(int world_id,
|
||||
const base::string16& code,
|
||||
mate::Arguments* args);
|
||||
|
||||
void SetIsolatedWorldContentSecurityPolicy(int world_id,
|
||||
const std::string& security_policy);
|
||||
void ExecuteJavaScriptInIsolatedWorld(
|
||||
int world_id,
|
||||
const std::vector<mate::Dictionary>& scripts,
|
||||
mate::Arguments* args);
|
||||
|
||||
// Isolated world related methods
|
||||
void SetIsolatedWorldSecurityOrigin(int world_id,
|
||||
const std::string& origin_url);
|
||||
void SetIsolatedWorldContentSecurityPolicy(
|
||||
int world_id,
|
||||
const std::string& security_policy);
|
||||
void SetIsolatedWorldHumanReadableName(int world_id,
|
||||
const std::string& name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue