Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: Source/core/inspector/InjectedScriptManager.h

Issue 686763002: Fix Runtime.executionContextCreated for crafted iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/inspector/InjectedScriptManager.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 void disconnect(); 61 void disconnect();
62 62
63 InjectedScriptHost* injectedScriptHost(); 63 InjectedScriptHost* injectedScriptHost();
64 64
65 InjectedScript injectedScriptFor(ScriptState*); 65 InjectedScript injectedScriptFor(ScriptState*);
66 InjectedScript injectedScriptForId(int); 66 InjectedScript injectedScriptForId(int);
67 int injectedScriptIdFor(ScriptState*); 67 int injectedScriptIdFor(ScriptState*);
68 InjectedScript injectedScriptForObjectId(const String& objectId); 68 InjectedScript injectedScriptForObjectId(const String& objectId);
69 void discardInjectedScripts(); 69 void discardInjectedScripts();
70 void discardInjectedScriptsFor(LocalDOMWindow*); 70 void discardInjectedScriptFor(ScriptState*);
71 void releaseObjectGroup(const String& objectGroup); 71 void releaseObjectGroup(const String& objectGroup);
72 72
73 typedef bool (*InspectedStateAccessCheck)(ScriptState*); 73 typedef bool (*InspectedStateAccessCheck)(ScriptState*);
74 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe ctedStateAccessCheck; } 74 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe ctedStateAccessCheck; }
75 75
76 static void setWeakCallback(const v8::WeakCallbackData<v8::Object, CallbackD ata>&); 76 static void setWeakCallback(const v8::WeakCallbackData<v8::Object, CallbackD ata>&);
77 CallbackData* createCallbackData(InjectedScriptManager*); 77 CallbackData* createCallbackData(InjectedScriptManager*);
78 void removeCallbackData(CallbackData*); 78 void removeCallbackData(CallbackData*);
79 79
80 private: 80 private:
(...skipping 11 matching lines...) Expand all
92 RefPtrWillBeMember<InjectedScriptHost> m_injectedScriptHost; 92 RefPtrWillBeMember<InjectedScriptHost> m_injectedScriptHost;
93 InspectedStateAccessCheck m_inspectedStateAccessCheck; 93 InspectedStateAccessCheck m_inspectedStateAccessCheck;
94 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; 94 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId;
95 ScriptStateToId m_scriptStateToId; 95 ScriptStateToId m_scriptStateToId;
96 HashSet<OwnPtr<CallbackData> > m_callbackDataSet; 96 HashSet<OwnPtr<CallbackData> > m_callbackDataSet;
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif // !defined(InjectedScriptManager_h) 101 #endif // !defined(InjectedScriptManager_h)
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/inspector/InjectedScriptManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698