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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScriptManager.h

Issue 1769273004: Remove V8RecrusionScope, cleanup call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 9 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class V8DebuggerClient; 45 class V8DebuggerClient;
46 class V8DebuggerImpl; 46 class V8DebuggerImpl;
47 47
48 class InjectedScriptManager { 48 class InjectedScriptManager {
49 PROTOCOL_DISALLOW_COPY(InjectedScriptManager); 49 PROTOCOL_DISALLOW_COPY(InjectedScriptManager);
50 public: 50 public:
51 static PassOwnPtr<InjectedScriptManager> create(V8DebuggerImpl*); 51 static PassOwnPtr<InjectedScriptManager> create(V8DebuggerImpl*);
52 ~InjectedScriptManager(); 52 ~InjectedScriptManager();
53 53
54 InjectedScriptHost* injectedScriptHost(); 54 InjectedScriptHost* injectedScriptHost();
55 V8DebuggerImpl* debugger() { return m_debugger; }
55 56
56 InjectedScript* injectedScriptFor(v8::Local<v8::Context>); 57 InjectedScript* injectedScriptFor(v8::Local<v8::Context>);
57 InjectedScript* findInjectedScript(int) const; 58 InjectedScript* findInjectedScript(int) const;
58 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*) const; 59 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*) const;
59 void discardInjectedScripts(); 60 void discardInjectedScripts();
60 int discardInjectedScriptFor(v8::Local<v8::Context>); 61 int discardInjectedScriptFor(v8::Local<v8::Context>);
61 void discardInjectedScript(int); 62 void discardInjectedScript(int);
62 void releaseObjectGroup(const String16& objectGroup); 63 void releaseObjectGroup(const String16& objectGroup);
63 void setCustomObjectFormatterEnabled(bool); 64 void setCustomObjectFormatterEnabled(bool);
64 65
65 private: 66 private:
66 explicit InjectedScriptManager(V8DebuggerImpl*); 67 explicit InjectedScriptManager(V8DebuggerImpl*);
67 68
68 v8::Local<v8::Object> createInjectedScript(const String16& source, v8::Local <v8::Context>, int id, InjectedScriptNative*); 69 v8::Local<v8::Object> createInjectedScript(const String16& source, v8::Local <v8::Context>, int id, InjectedScriptNative*);
69 70
70 typedef protocol::HashMap<int, OwnPtr<InjectedScript>> IdToInjectedScriptMap ; 71 typedef protocol::HashMap<int, OwnPtr<InjectedScript>> IdToInjectedScriptMap ;
71 IdToInjectedScriptMap m_idToInjectedScript; 72 IdToInjectedScriptMap m_idToInjectedScript;
72 OwnPtr<InjectedScriptHost> m_injectedScriptHost; 73 OwnPtr<InjectedScriptHost> m_injectedScriptHost;
73 bool m_customObjectFormatterEnabled; 74 bool m_customObjectFormatterEnabled;
74 V8DebuggerClient* m_client; 75 V8DebuggerImpl* m_debugger;
75 }; 76 };
76 77
77 } // namespace blink 78 } // namespace blink
78 79
79 #endif // !defined(InjectedScriptManager_h) 80 #endif // !defined(InjectedScriptManager_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698