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

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

Issue 1146993005: DevTools: remove unused constant declarations and redundant parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 int injectedScriptIdFor(ScriptState*); 75 int injectedScriptIdFor(ScriptState*);
76 InjectedScript injectedScriptForObjectId(const String& objectId); 76 InjectedScript injectedScriptForObjectId(const String& objectId);
77 void discardInjectedScripts(); 77 void discardInjectedScripts();
78 void discardInjectedScriptFor(ScriptState*); 78 void discardInjectedScriptFor(ScriptState*);
79 void releaseObjectGroup(const String& objectGroup); 79 void releaseObjectGroup(const String& objectGroup);
80 80
81 typedef bool (*InspectedStateAccessCheck)(ScriptState*); 81 typedef bool (*InspectedStateAccessCheck)(ScriptState*);
82 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe ctedStateAccessCheck; } 82 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe ctedStateAccessCheck; }
83 83
84 static void setWeakCallback(const v8::WeakCallbackInfo<CallbackData>&); 84 static void setWeakCallback(const v8::WeakCallbackInfo<CallbackData>&);
85 CallbackData* createCallbackData(InjectedScriptManager*); 85 CallbackData* createCallbackData();
86 void removeCallbackData(CallbackData*); 86 void removeCallbackData(CallbackData*);
87 void setCustomObjectFormatterEnabled(bool); 87 void setCustomObjectFormatterEnabled(bool);
88 88
89 private: 89 private:
90 explicit InjectedScriptManager(InspectedStateAccessCheck); 90 explicit InjectedScriptManager(InspectedStateAccessCheck);
91 91
92 String injectedScriptSource(); 92 String injectedScriptSource();
93 ScriptValue createInjectedScript(const String& source, ScriptState*, int id, InjectedScriptNative*); 93 ScriptValue createInjectedScript(const String& source, ScriptState*, int id, InjectedScriptNative*);
94 94
95 static bool canAccessInspectedWindow(ScriptState*); 95 static bool canAccessInspectedWindow(ScriptState*);
96 static bool canAccessInspectedWorkerGlobalScope(ScriptState*); 96 static bool canAccessInspectedWorkerGlobalScope(ScriptState*);
97 97
98 int m_nextInjectedScriptId; 98 int m_nextInjectedScriptId;
99 typedef HashMap<int, InjectedScript> IdToInjectedScriptMap; 99 typedef HashMap<int, InjectedScript> IdToInjectedScriptMap;
100 IdToInjectedScriptMap m_idToInjectedScript; 100 IdToInjectedScriptMap m_idToInjectedScript;
101 RefPtrWillBeMember<InjectedScriptHost> m_injectedScriptHost; 101 RefPtrWillBeMember<InjectedScriptHost> m_injectedScriptHost;
102 InspectedStateAccessCheck m_inspectedStateAccessCheck; 102 InspectedStateAccessCheck m_inspectedStateAccessCheck;
103 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; 103 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId;
104 ScriptStateToId m_scriptStateToId; 104 ScriptStateToId m_scriptStateToId;
105 WillBeHeapHashSet<OwnPtrWillBeMember<CallbackData>> m_callbackDataSet; 105 WillBeHeapHashSet<OwnPtrWillBeMember<CallbackData>> m_callbackDataSet;
106 bool m_customObjectFormatterEnabled; 106 bool m_customObjectFormatterEnabled;
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif // !defined(InjectedScriptManager_h) 111 #endif // !defined(InjectedScriptManager_h)
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp ('k') | Source/core/inspector/JavaScriptCallFrame.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698