Index: extensions/renderer/script_context.h |
diff --git a/extensions/renderer/script_context.h b/extensions/renderer/script_context.h |
index 012f11f779b79259e9d2a513ad00df8cdd811c01..945eccbfd25ddd15a58569fab3e1cc0b69a7c85e 100644 |
--- a/extensions/renderer/script_context.h |
+++ b/extensions/renderer/script_context.h |
@@ -123,10 +123,10 @@ class ScriptContext : public RequestSender::Source { |
Feature::Availability GetAvailability(const std::string& api_name); |
// Returns a string description of the type of context this is. |
- std::string GetContextTypeDescription(); |
+ std::string GetContextTypeDescription() const; |
// Returns a string description of the effective type of context this is. |
- std::string GetEffectiveContextTypeDescription(); |
+ std::string GetEffectiveContextTypeDescription() const; |
v8::Isolate* isolate() const { return isolate_; } |
@@ -180,6 +180,9 @@ class ScriptContext : public RequestSender::Source { |
// no exception thrown), false if it does not (i.e. an exception was thrown). |
bool HasAccessOrThrowError(const std::string& name); |
+ // Returns a string representation of this ScriptContext, for debugging. |
+ std::string GetDebugString() const; |
+ |
private: |
class Runner; |