| 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 24 matching lines...) Expand all Loading... |
| 35 #include "bindings/core/v8/ScriptValue.h" | 35 #include "bindings/core/v8/ScriptValue.h" |
| 36 #include "core/InspectorTypeBuilder.h" | 36 #include "core/InspectorTypeBuilder.h" |
| 37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class JSONValue; | 41 class JSONValue; |
| 42 class ScriptFunctionCall; | 42 class ScriptFunctionCall; |
| 43 | 43 |
| 44 typedef String ErrorString; | 44 typedef String ErrorString; |
| 45 | 45 PassRefPtr<JSONValue> toJSONValue(const ScriptValue&); |
| 46 | 46 |
| 47 class InjectedScriptBase { | 47 class InjectedScriptBase { |
| 48 public: | 48 public: |
| 49 virtual ~InjectedScriptBase() { } | 49 virtual ~InjectedScriptBase() { } |
| 50 | 50 |
| 51 const String& name() const { return m_name; } | 51 const String& name() const { return m_name; } |
| 52 bool isEmpty() const { return m_injectedScriptObject.isEmpty(); } | 52 bool isEmpty() const { return m_injectedScriptObject.isEmpty(); } |
| 53 ScriptState* scriptState() const | 53 ScriptState* scriptState() const |
| 54 { | 54 { |
| 55 ASSERT(!isEmpty()); | 55 ASSERT(!isEmpty()); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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 blink | 78 } // namespace blink |
| 79 | 79 |
| 80 #endif | 80 #endif |
| OLD | NEW |