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

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

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 months 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 | Annotate | Revision Log
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe ctedStateAccessCheck; } 65 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe ctedStateAccessCheck; }
66 66
67 static void makeWeakCallback(v8::Isolate*, v8::Persistent<v8::Object>*, Inje ctedScriptHost*); 67 static void makeWeakCallback(v8::Isolate*, v8::Persistent<v8::Object>*, Inje ctedScriptHost*);
68 private: 68 private:
69 explicit InjectedScriptManager(InspectedStateAccessCheck); 69 explicit InjectedScriptManager(InspectedStateAccessCheck);
70 70
71 String injectedScriptSource(); 71 String injectedScriptSource();
72 ScriptObject createInjectedScript(const String& source, ScriptState*, int id ); 72 ScriptObject createInjectedScript(const String& source, ScriptState*, int id );
73 73
74 static bool canAccessInspectedWindow(ScriptState*); 74 static bool canAccessInspectedWindow(ScriptState*);
75 static bool canAccessInspectedWorkerContext(ScriptState*); 75 static bool canAccessInspectedWorkerGlobalScope(ScriptState*);
76 76
77 int m_nextInjectedScriptId; 77 int m_nextInjectedScriptId;
78 typedef HashMap<int, InjectedScript> IdToInjectedScriptMap; 78 typedef HashMap<int, InjectedScript> IdToInjectedScriptMap;
79 IdToInjectedScriptMap m_idToInjectedScript; 79 IdToInjectedScriptMap m_idToInjectedScript;
80 RefPtr<InjectedScriptHost> m_injectedScriptHost; 80 RefPtr<InjectedScriptHost> m_injectedScriptHost;
81 InspectedStateAccessCheck m_inspectedStateAccessCheck; 81 InspectedStateAccessCheck m_inspectedStateAccessCheck;
82 typedef HashMap<ScriptState*, int> ScriptStateToId; 82 typedef HashMap<ScriptState*, int> ScriptStateToId;
83 ScriptStateToId m_scriptStateToId; 83 ScriptStateToId m_scriptStateToId;
84 }; 84 };
85 85
86 } // namespace WebCore 86 } // namespace WebCore
87 87
88 #endif // !defined(InjectedScriptManager_h) 88 #endif // !defined(InjectedScriptManager_h)
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.cpp ('k') | Source/core/inspector/InjectedScriptManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698