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

Unified Diff: extensions/renderer/script_context_set.h

Issue 1200503002: [Extensions] Kill off ExtensionMsg_AddMessageToConsole (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ben's Created 5 years, 6 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
Index: extensions/renderer/script_context_set.h
diff --git a/extensions/renderer/script_context_set.h b/extensions/renderer/script_context_set.h
index b7424ae48247de54b818e41ceb87e0d3790903f2..cfe96727a7fce116bf79e88a73e1cbcff7b8f0ee 100644
--- a/extensions/renderer/script_context_set.h
+++ b/extensions/renderer/script_context_set.h
@@ -77,6 +77,9 @@ class ScriptContextSet {
// Gets the ScriptContext corresponding to the specified
// v8::Context or NULL if no such context exists.
ScriptContext* GetByV8Context(const v8::Local<v8::Context>& context) const;
+ // Static equivalent of the above.
not at google - send to devlin 2015/06/22 21:20:15 I'd rather a static Get() method of ScriptContextS
Devlin 2015/06/22 21:23:11 But since ScriptContextSet can be null while testi
not at google - send to devlin 2015/06/22 21:26:38 If you *promise* to pull ownership of ScriptContex
+ static ScriptContext* GetContextByV8Context(
+ const v8::Local<v8::Context>& context);
// Synchronously runs |callback| with each ScriptContext that belongs to
// |extension_id| in |render_view|.

Powered by Google App Engine
This is Rietveld 408576698