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

Unified Diff: chrome/renderer/installation_service_impl.h

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Minor refactor. Created 4 years, 2 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: chrome/renderer/installation_service_impl.h
diff --git a/chrome/renderer/installation_service_impl.h b/chrome/renderer/installation_service_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..043e0c6b55e9921bc2002b8d101a3a231d5b1b48
--- /dev/null
+++ b/chrome/renderer/installation_service_impl.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
dominickn 2016/10/12 22:35:09 Adding new code in chrome/renderer is frowned upon
Matt Giuca 2016/12/09 04:36:48 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_INSTALLATION_SERVICE_IMPL_H_
+#define CHROME_RENDERER_INSTALLATION_SERVICE_IMPL_H_
+
+#include "third_party/WebKit/public/platform/modules/installation/installation.mojom.h"
+
+namespace content {
+class RenderFrame;
+} // namespace content
+
+class InstallationServiceImpl : public blink::mojom::InstallationService {
+ public:
+ explicit InstallationServiceImpl(content::RenderFrame* render_frame);
+
+ static void Create(content::RenderFrame* render_frame,
+ blink::mojom::InstallationServiceRequest request);
+
+ void OnInstall() override;
+
+ private:
+ content::RenderFrame* render_frame_;
+};
+
+#endif // CHROME_RENDERER_INSTALLATION_SERVICE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698