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

Unified Diff: content/public/renderer/content_renderer_client.h

Issue 1256323008: [Extension ServiceWorkers] Chrome: Passing v8::context to extensions dispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: content/public/renderer/content_renderer_client.h
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
index ebb7f445307927598c46d2a5b1a654482584b97f..f018ea8622d5b6703ef670727616ae4b2b9bb404 100644
--- a/content/public/renderer/content_renderer_client.h
+++ b/content/public/renderer/content_renderer_client.h
@@ -85,6 +85,10 @@ class CONTENT_EXPORT ContentRendererClient {
// Notifies that a new RenderView has been created.
virtual void RenderViewCreated(RenderView* render_view) {}
+ virtual void ServiceWorkerCreated() {}
Devlin 2015/07/30 21:31:08 Are these used?
annekao 2015/07/30 22:54:18 Removed.
+ virtual void ServiceWorkerContextInitialized() {}
+ virtual void ServiceWorkerDestroyed() {}
+
// Returns the bitmap to show when a plugin crashed, or NULL for none.
virtual SkBitmap* GetSadPluginBitmap();
@@ -297,6 +301,9 @@ class CONTENT_EXPORT ContentRendererClient {
virtual void AddImageContextMenuProperties(
const blink::WebURLResponse& response,
std::map<std::string, std::string>* properties) {}
+
+ virtual void DidInitializeWorkerContext(v8::Local<v8::Context> context,
Devlin 2015/07/30 21:31:08 Comment this method. Also, I'd rename this to DidI
annekao 2015/07/30 22:54:18 Done.
Devlin 2015/07/30 22:58:51 The method still has no comment...
annekao 2015/07/30 23:57:39 Oops, somehow missed the first line. Done.
+ const GURL& url){};
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698