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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 v8::Local<v8::Context> context() const; 118 v8::Local<v8::Context> context() const;
119 void dispose(); 119 void dispose();
120 120
121 private: 121 private:
122 friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8 ::Context>); 122 friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8 ::Context>);
123 InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8: :Object>, V8DebuggerClient*, PassRefPtr<InjectedScriptNative>, int contextId); 123 InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8: :Object>, V8DebuggerClient*, PassRefPtr<InjectedScriptNative>, int contextId);
124 124
125 bool canAccessInspectedWindow() const; 125 bool canAccessInspectedWindow() const;
126 v8::Local<v8::Value> v8Value() const; 126 v8::Local<v8::Value> v8Value() const;
127 v8::Local<v8::Value> callFunctionWithEvalEnabled(V8FunctionCall&, bool& hadE xception) const; 127 v8::Local<v8::Value> callFunctionWithEvalEnabled(V8FunctionCall&, bool& hadE xception) const;
128 void makeCall(V8FunctionCall&, RefPtr<protocol::Value>* result); 128 void makeCall(V8FunctionCall&, OwnPtr<protocol::Value>* result);
129 void makeEvalCall(ErrorString*, V8FunctionCall&, OwnPtr<protocol::Runtime::R emoteObject>* result, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::Exception Details>* = 0); 129 void makeEvalCall(ErrorString*, V8FunctionCall&, OwnPtr<protocol::Runtime::R emoteObject>* result, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::Exception Details>* = 0);
130 void makeCallWithExceptionDetails(V8FunctionCall&, RefPtr<protocol::Value>* result, Maybe<protocol::Runtime::ExceptionDetails>*); 130 void makeCallWithExceptionDetails(V8FunctionCall&, OwnPtr<protocol::Value>* result, Maybe<protocol::Runtime::ExceptionDetails>*);
131 131
132 InjectedScriptManager* m_manager; 132 InjectedScriptManager* m_manager;
133 v8::Isolate* m_isolate; 133 v8::Isolate* m_isolate;
134 v8::Global<v8::Context> m_context; 134 v8::Global<v8::Context> m_context;
135 v8::Global<v8::Value> m_value; 135 v8::Global<v8::Value> m_value;
136 V8DebuggerClient* m_client; 136 V8DebuggerClient* m_client;
137 RefPtr<InjectedScriptNative> m_native; 137 RefPtr<InjectedScriptNative> m_native;
138 int m_contextId; 138 int m_contextId;
139 String m_origin; 139 String m_origin;
140 }; 140 };
141 141
142 } // namespace blink 142 } // namespace blink
143 143
144 #endif 144 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698