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

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

Issue 1745423002: DevTools: migrate protocol values from RefPtr to OwnPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 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 void setClearConsoleCallback(PassOwnPtr<V8RuntimeAgent::ClearConsoleCallback >); 60 void setClearConsoleCallback(PassOwnPtr<V8RuntimeAgent::ClearConsoleCallback >);
61 void setInspectObjectCallback(PassOwnPtr<V8RuntimeAgent::InspectCallback>); 61 void setInspectObjectCallback(PassOwnPtr<V8RuntimeAgent::InspectCallback>);
62 void setDebuggerAgent(V8DebuggerAgentImpl* debuggerAgent) { m_debuggerAgent = debuggerAgent; } 62 void setDebuggerAgent(V8DebuggerAgentImpl* debuggerAgent) { m_debuggerAgent = debuggerAgent; }
63 63
64 void disconnect(); 64 void disconnect();
65 65
66 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); 66 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>);
67 void clearInspectedObjects(); 67 void clearInspectedObjects();
68 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); 68 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num);
69 69
70 void inspectImpl(PassRefPtr<protocol::Value> objectToInspect, PassRefPtr<pro tocol::Value> hints); 70 void inspectImpl(PassOwnPtr<protocol::Value> objectToInspect, PassOwnPtr<pro tocol::Value> hints);
71 71
72 void clearConsoleMessages(); 72 void clearConsoleMessages();
73 void debugFunction(const String& scriptId, int lineNumber, int columnNumber) ; 73 void debugFunction(const String& scriptId, int lineNumber, int columnNumber) ;
74 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe r); 74 void undebugFunction(const String& scriptId, int lineNumber, int columnNumbe r);
75 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe r, const String& functionName); 75 void monitorFunction(const String& scriptId, int lineNumber, int columnNumbe r, const String& functionName);
76 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum ber); 76 void unmonitorFunction(const String& scriptId, int lineNumber, int columnNum ber);
77 77
78 V8DebuggerImpl* debugger() { return m_debugger; } 78 V8DebuggerImpl* debugger() { return m_debugger; }
79 79
80 // FIXME: store this template in per isolate data 80 // FIXME: store this template in per isolate data
81 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); } 81 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8: :Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); }
82 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); } 82 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); }
83 83
84 private: 84 private:
85 InjectedScriptHost(V8DebuggerImpl*); 85 InjectedScriptHost(V8DebuggerImpl*);
86 86
87 V8DebuggerImpl* m_debugger; 87 V8DebuggerImpl* m_debugger;
88 V8DebuggerAgentImpl* m_debuggerAgent; 88 V8DebuggerAgentImpl* m_debuggerAgent;
89 OwnPtr<V8RuntimeAgent::InspectCallback> m_inspectCallback; 89 OwnPtr<V8RuntimeAgent::InspectCallback> m_inspectCallback;
90 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback; 90 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback;
91 Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; 91 Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects;
92 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; 92 v8::Global<v8::FunctionTemplate> m_wrapperTemplate;
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif // InjectedScriptHost_h 97 #endif // InjectedScriptHost_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698