OLD | NEW |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 protected: | 59 protected: |
60 typedef bool (*InspectedStateAccessCheck)(ScriptState*); | 60 typedef bool (*InspectedStateAccessCheck)(ScriptState*); |
61 InjectedScriptBase(const String& name); | 61 InjectedScriptBase(const String& name); |
62 InjectedScriptBase(const String& name, ScriptValue, InspectedStateAccessChec
k); | 62 InjectedScriptBase(const String& name, ScriptValue, InspectedStateAccessChec
k); |
63 | 63 |
64 void initialize(ScriptValue, InspectedStateAccessCheck); | 64 void initialize(ScriptValue, InspectedStateAccessCheck); |
65 bool canAccessInspectedWindow() const; | 65 bool canAccessInspectedWindow() const; |
66 const ScriptValue& injectedScriptObject() const; | 66 const ScriptValue& injectedScriptObject() const; |
67 ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadExcept
ion) const; | 67 ScriptValue callFunctionWithEvalEnabled(ScriptFunctionCall&, bool& hadExcept
ion) const; |
68 void makeCall(ScriptFunctionCall&, RefPtr<JSONValue>* result); | 68 void makeCall(ScriptFunctionCall&, RefPtr<JSONValue>* result); |
69 void makeEvalCall(ErrorString*, ScriptFunctionCall&, RefPtr<TypeBuilder::Run
time::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown); | 69 void makeEvalCall(ErrorString*, ScriptFunctionCall&, RefPtr<TypeBuilder::Run
time::RemoteObject>* result, TypeBuilder::OptOutput<bool>* wasThrown, RefPtr<Typ
eBuilder::Debugger::ExceptionDetails>* = 0); |
70 | 70 |
71 private: | 71 private: |
72 String m_name; | 72 String m_name; |
73 ScriptValue m_injectedScriptObject; | 73 ScriptValue m_injectedScriptObject; |
74 InspectedStateAccessCheck m_inspectedStateAccessCheck; | 74 InspectedStateAccessCheck m_inspectedStateAccessCheck; |
75 }; | 75 }; |
76 | 76 |
77 | 77 |
78 } // namespace WebCore | 78 } // namespace WebCore |
79 | 79 |
80 #endif | 80 #endif |
OLD | NEW |