Chromium Code Reviews| 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_ |