| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 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 24 matching lines...) Expand all Loading... |
| 35 #include <v8.h> | 35 #include <v8.h> |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class V8DebuggerScript { | 39 class V8DebuggerScript { |
| 40 PROTOCOL_DISALLOW_COPY(V8DebuggerScript); | 40 PROTOCOL_DISALLOW_COPY(V8DebuggerScript); |
| 41 public: | 41 public: |
| 42 V8DebuggerScript(v8::Isolate*, v8::Local<v8::Object>, bool isLiveEdit); | 42 V8DebuggerScript(v8::Isolate*, v8::Local<v8::Object>, bool isLiveEdit); |
| 43 ~V8DebuggerScript(); | 43 ~V8DebuggerScript(); |
| 44 | 44 |
| 45 String16 scriptId() const { return m_id; } | 45 const String16& scriptId() const { return m_id; } |
| 46 String16 url() const { return m_url; } | 46 const String16& url() const { return m_url; } |
| 47 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } | 47 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } |
| 48 String16 sourceURL() const; | 48 const String16& sourceURL() const; |
| 49 String16 sourceMappingURL() const { return m_sourceMappingURL; } | 49 const String16& sourceMappingURL() const { return m_sourceMappingURL; } |
| 50 v8::Local<v8::String> source(v8::Isolate*) const; | 50 v8::Local<v8::String> source(v8::Isolate*) const; |
| 51 String16 hash() const { return m_hash; } | 51 const String16& hash() const { return m_hash; } |
| 52 int startLine() const { return m_startLine; } | 52 int startLine() const { return m_startLine; } |
| 53 int startColumn() const { return m_startColumn; } | 53 int startColumn() const { return m_startColumn; } |
| 54 int endLine() const { return m_endLine; } | 54 int endLine() const { return m_endLine; } |
| 55 int endColumn() const { return m_endColumn; } | 55 int endColumn() const { return m_endColumn; } |
| 56 int executionContextId() const { return m_executionContextId; } | 56 int executionContextId() const { return m_executionContextId; } |
| 57 bool isContentScript() const { return m_isContentScript; } | 57 const String16& executionContextAuxData() const { return m_executionContextA
uxData; } |
| 58 bool isInternalScript() const { return m_isInternalScript; } | 58 bool isInternalScript() const { return m_isInternalScript; } |
| 59 bool isLiveEdit() const { return m_isLiveEdit; } | 59 bool isLiveEdit() const { return m_isLiveEdit; } |
| 60 | 60 |
| 61 void setSourceURL(const String16&); | 61 void setSourceURL(const String16&); |
| 62 void setSourceMappingURL(const String16&); | 62 void setSourceMappingURL(const String16&); |
| 63 void setSource(v8::Isolate*, v8::Local<v8::String>); | 63 void setSource(v8::Isolate*, v8::Local<v8::String>); |
| 64 | 64 |
| 65 private: | 65 private: |
| 66 String16 m_id; | 66 String16 m_id; |
| 67 String16 m_url; | 67 String16 m_url; |
| 68 String16 m_sourceURL; | 68 String16 m_sourceURL; |
| 69 String16 m_sourceMappingURL; | 69 String16 m_sourceMappingURL; |
| 70 v8::Global<v8::String> m_source; | 70 v8::Global<v8::String> m_source; |
| 71 String16 m_hash; | 71 String16 m_hash; |
| 72 int m_startLine; | 72 int m_startLine; |
| 73 int m_startColumn; | 73 int m_startColumn; |
| 74 int m_endLine; | 74 int m_endLine; |
| 75 int m_endColumn; | 75 int m_endColumn; |
| 76 int m_executionContextId; | 76 int m_executionContextId; |
| 77 bool m_isContentScript; | 77 String16 m_executionContextAuxData; |
| 78 bool m_isInternalScript; | 78 bool m_isInternalScript; |
| 79 bool m_isLiveEdit; | 79 bool m_isLiveEdit; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| 83 | 83 |
| 84 | 84 |
| 85 #endif // V8DebuggerScript_h | 85 #endif // V8DebuggerScript_h |
| OLD | NEW |