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

Unified Diff: chrome/renderer/extensions/webstore_bindings_helper.h

Issue 2791533002: Convert Web Store Inline Install IPCs to mojo (Closed)
Patch Set: WebContentsFrameBindingSet in TabHelper, weak binding in WebstoreBindings Created 3 years, 8 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/extensions/webstore_bindings_helper.h
diff --git a/chrome/renderer/extensions/webstore_bindings_helper.h b/chrome/renderer/extensions/webstore_bindings_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..25f808b831fd3a3219f088f93a994e5bda679680
--- /dev/null
+++ b/chrome/renderer/extensions/webstore_bindings_helper.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2017 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 CHROME_RENDERER_EXTENSIONS_WEBSTORE_BINDINGS_HELPER_H_
+#define CHROME_RENDERER_EXTENSIONS_WEBSTORE_BINDINGS_HELPER_H_
+
+#include "chrome/common/extensions/mojo/inline_install.mojom.h"
+#include "extensions/renderer/object_backed_native_handler.h"
+#include "mojo/public/cpp/bindings/binding.h"
+
+namespace extensions {
+
+class WebstoreBindingsHelper : public ObjectBackedNativeHandler,
Devlin 2017/04/12 01:16:07 I think for this, this class can just be an inner
catmullings 2017/04/14 20:59:40 Done.
+ public mojom::InlineInstallStatus {
+ public:
+ static void Create(ScriptContext* context,
+ mojom::InlineInstallStatusRequest request);
+
+ private:
+ WebstoreBindingsHelper(ScriptContext* context,
+ mojom::InlineInstallStatusRequest request);
+ ~WebstoreBindingsHelper() override;
+
+ void InlineInstallStageChanged(api::webstore::InstallStage stage) override;
+ void InlineInstallDownloadProgress(int percent_downloaded) override;
+
+ mojo::Binding<mojom::InlineInstallStatus> binding_;
+};
+
+} // namespace extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_WEBSTORE_BINDINGS_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698