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

Unified Diff: extensions/renderer/script_context.h

Issue 1142993002: Don't send unnecessary ExtensionMsg_Loaded IPCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: commnets Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698