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

Unified Diff: apps/shell/renderer/shell_renderer_main_delegate.h

Issue 331323008: app-shell: Introduce a ShellRendererMainDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 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
« no previous file with comments | « apps/shell/renderer/shell_content_renderer_client.cc ('k') | athena/main/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/renderer/shell_renderer_main_delegate.h
diff --git a/apps/shell/renderer/shell_renderer_main_delegate.h b/apps/shell/renderer/shell_renderer_main_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..604b6c72887ea423c3be54b33168adbbdff4c713
--- /dev/null
+++ b/apps/shell/renderer/shell_renderer_main_delegate.h
@@ -0,0 +1,30 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef APPS_SHELL_RENDERER_SHELL_RENDERER_MAIN_DELEGATE_H_
+#define APPS_SHELL_RENDERER_SHELL_RENDERER_MAIN_DELEGATE_H_
+
+namespace content {
+class RenderThread;
+class RenderView;
+}
+
+namespace apps {
+
+class ShellRendererMainDelegate {
+ public:
+ virtual ~ShellRendererMainDelegate() {}
+
+ // Called when |thread| is started, after the extensions subsystem has been
+ // initialized for |thread|.
+ virtual void OnThreadStarted(content::RenderThread* thread) = 0;
+
+ // Called for each RenderView created in the renderer process, after the
+ // extension related code has been initialized for the view.
+ virtual void OnViewCreated(content::RenderView* view) = 0;
+};
+
+} // namespace apps
+
+#endif // APPS_SHELL_RENDERER_SHELL_RENDERER_MAIN_DELEGATE_H_
« no previous file with comments | « apps/shell/renderer/shell_content_renderer_client.cc ('k') | athena/main/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698