Home
last modified time | relevance | path

Searched refs:worldId (Results 1 – 19 of 19) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
DDOMWrapperWorld.cpp51 PassRefPtr<DOMWrapperWorld> DOMWrapperWorld::create(int worldId, int extensionGroup) in create() argument
53 return adoptRef(new DOMWrapperWorld(worldId, extensionGroup)); in create()
56 DOMWrapperWorld::DOMWrapperWorld(int worldId, int extensionGroup) in DOMWrapperWorld() argument
57 : m_worldId(worldId) in DOMWrapperWorld()
126 static bool isIsolatedWorldId(int worldId) in isIsolatedWorldId() argument
128 return MainWorldId < worldId && worldId < IsolatedWorldIdLimit; in isIsolatedWorldId()
132 PassRefPtr<DOMWrapperWorld> DOMWrapperWorld::ensureIsolatedWorld(int worldId, int extensionGroup) in ensureIsolatedWorld() argument
134 ASSERT(isIsolatedWorldId(worldId)); in ensureIsolatedWorld()
137 WorldMap::AddResult result = map.add(worldId, 0); in ensureIsolatedWorld()
140 ASSERT(world->worldId() == worldId); in ensureIsolatedWorld()
[all …]
DV8DOMActivityLogger.cpp33 void V8DOMActivityLogger::setActivityLogger(int worldId, const String& extensionId, PassOwnPtr<V8DO… in setActivityLogger() argument
35 if (worldId) in setActivityLogger()
36 domActivityLoggersForIsolatedWorld().set(worldId, logger); in setActivityLogger()
41 V8DOMActivityLogger* V8DOMActivityLogger::activityLogger(int worldId, const String& extensionId) in activityLogger() argument
43 if (worldId) { in activityLogger()
45 DOMActivityLoggerMapForIsolatedWorld::iterator it = loggers.find(worldId); in activityLogger()
57 V8DOMActivityLogger* V8DOMActivityLogger::activityLogger(int worldId, const KURL& url) in activityLogger() argument
60 if (worldId) in activityLogger()
61 return activityLogger(worldId, String()); in activityLogger()
69 return activityLogger(worldId, url.host()); in activityLogger()
DDOMWrapperWorld.h63 static PassRefPtr<DOMWrapperWorld> create(int worldId = -1, int extensionGroup = -1);
67 static PassRefPtr<DOMWrapperWorld> ensureIsolatedWorld(int worldId, int extensionGroup);
100 static void setIsolatedWorldSecurityOrigin(int worldId, PassRefPtr<SecurityOrigin>);
111 static void setIsolatedWorldContentSecurityPolicy(int worldId, const String& policy);
119 int worldId() const { return m_worldId; } in worldId() function
179 DOMWrapperWorld(int worldId, int extensionGroup);
DV8DOMActivityLogger.h62 static void setActivityLogger(int worldId, const String&, PassOwnPtr<V8DOMActivityLogger>);
63 static V8DOMActivityLogger* activityLogger(int worldId, const String& extensionId);
64 static V8DOMActivityLogger* activityLogger(int worldId, const KURL&);
DWindowProxy.cpp97 m_frame->loader().client()->willReleaseScriptContext(context, m_world->worldId()); in disposeContext()
231 …>loader().client()->didCreateScriptContext(context, m_world->extensionGroup(), m_world->worldId()); in initialize()
255 int worldId = m_world->worldId(); in createContext() local
257 …(!m_frame->loader().client()->allowScriptExtension(extensions[i]->name(), extensionGroup, worldId)) in createContext()
365 m_world->worldId(), m_frame->document() ? m_frame->document()->baseURI() : KURL())); in updateActivityLogger()
DScriptController.cpp218 IsolatedWorldMap::iterator iter = m_isolatedWorlds.find(world.worldId()); in existingWindowProxy()
230 IsolatedWorldMap::iterator iter = m_isolatedWorlds.find(world.worldId()); in windowProxy()
236 m_isolatedWorlds.set(world.worldId(), isolatedWorldWindowProxy.release()); in windowProxy()
456 void ScriptController::setWorldDebugId(int worldId, int debuggerId) in setWorldDebugId() argument
459 bool isMainWorld = worldId == MainWorldId; in setWorldDebugId()
464 IsolatedWorldMap::iterator iter = m_isolatedWorlds.find(worldId); in setWorldDebugId()
DScriptController.h148 void setWorldDebugId(int worldId, int debuggerId);
/external/chromium_org/third_party/WebKit/Source/web/
DWebDOMActivityLogger.cpp91 bool hasDOMActivityLogger(int worldId, const WebString& extensionId) in hasDOMActivityLogger() argument
93 return V8DOMActivityLogger::activityLogger(worldId, extensionId); in hasDOMActivityLogger()
96 void setDOMActivityLogger(int worldId, const WebString& extensionId, WebDOMActivityLogger* logger) in setDOMActivityLogger() argument
99 …V8DOMActivityLogger::setActivityLogger(worldId, extensionId, adoptPtr(new DOMActivityLoggerContain… in setDOMActivityLogger()
DFrameLoaderClientImpl.cpp135 …lientImpl::didCreateScriptContext(v8::Handle<v8::Context> context, int extensionGroup, int worldId) in didCreateScriptContext() argument
139 webview->devToolsAgentPrivate()->didCreateScriptContext(m_webFrame, worldId); in didCreateScriptContext()
141 m_webFrame->client()->didCreateScriptContext(m_webFrame, context, extensionGroup, worldId); in didCreateScriptContext()
144 void FrameLoaderClientImpl::willReleaseScriptContext(v8::Handle<v8::Context> context, int worldId) in willReleaseScriptContext() argument
147 m_webFrame->client()->willReleaseScriptContext(m_webFrame, context, worldId); in willReleaseScriptContext()
152 int worldId) in allowScriptExtension() argument
155 …eturn m_webFrame->permissionClient()->allowScriptExtension(extensionName, extensionGroup, worldId); in allowScriptExtension()
DFrameLoaderClientImpl.h62 …virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGroup, int worldId) OVER…
63 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE;
67 …virtual bool allowScriptExtension(const String& extensionName, int extensionGroup, int worldId) OV…
DWebDevToolsAgentPrivate.h50 virtual void didCreateScriptContext(WebLocalFrameImpl*, int worldId) = 0;
DWebDevToolsAgentImpl.cpp299 void WebDevToolsAgentImpl::didCreateScriptContext(WebLocalFrameImpl* webframe, int worldId) in didCreateScriptContext() argument
302 frame->script().setWorldDebugId(worldId, m_debuggerId); in didCreateScriptContext()
304 if (worldId) in didCreateScriptContext()
DWebDevToolsAgentImpl.h80 virtual void didCreateScriptContext(WebLocalFrameImpl*, int worldId) OVERRIDE;
/external/chromium_org/third_party/WebKit/public/web/
DWebDOMActivityLogger.h54 BLINK_EXPORT bool hasDOMActivityLogger(int worldId, const WebString& extensionId);
60 BLINK_EXPORT void setDOMActivityLogger(int worldId, const WebString& extensionId, WebDOMActivityLog…
DWebPermissionClient.h85 … virtual bool allowScriptExtension(const WebString& extensionName, int extensionGroup, int worldId) in allowScriptExtension() argument
DWebFrameClient.h436 …idCreateScriptContext(WebLocalFrame*, v8::Handle<v8::Context>, int extensionGroup, int worldId) { } in didCreateScriptContext() argument
439 virtual void willReleaseScriptContext(WebLocalFrame*, v8::Handle<v8::Context>, int worldId) { } in willReleaseScriptContext() argument
/external/chromium_org/third_party/WebKit/Source/core/loader/
DFrameLoaderClient.h162 … virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGroup, int worldId) = 0;
163 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) = 0;
164 …irtual bool allowScriptExtension(const String& extensionName, int extensionGroup, int worldId) = 0;
DEmptyClients.h239 …virtual void didCreateScriptContext(v8::Handle<v8::Context>, int extensionGroup, int worldId) OVER… in didCreateScriptContext() argument
240 virtual void willReleaseScriptContext(v8::Handle<v8::Context>, int worldId) OVERRIDE { } in willReleaseScriptContext() argument
241 …virtual bool allowScriptExtension(const String& extensionName, int extensionGroup, int worldId) OV… in allowScriptExtension() argument
/external/chromium_org/third_party/WebKit/Source/web/tests/
DWebFrameTest.cpp2810 Notification(WebLocalFrame* frame, v8::Handle<v8::Context> context, int worldId) in Notification()
2813 , worldId(worldId) in Notification()
2824 … return other && frame == other->frame && context == other->context && worldId == other->worldId; in Equals()
2829 int worldId; member
2853 …xt(WebLocalFrame* frame, v8::Handle<v8::Context> context, int extensionGroup, int worldId) OVERRIDE in didCreateScriptContext() argument
2855 createNotifications.push_back(new Notification(frame, context, worldId)); in didCreateScriptContext()
2858 …llReleaseScriptContext(WebLocalFrame* frame, v8::Handle<v8::Context> context, int worldId) OVERRIDE in willReleaseScriptContext() argument
2860 releaseNotifications.push_back(new Notification(frame, context, worldId)); in willReleaseScriptContext()
2888 EXPECT_EQ(0, firstCreateNotification->worldId); in TEST_F()
2892 EXPECT_EQ(0, secondCreateNotification->worldId); in TEST_F()
[all …]