Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_RENDERER_EXTENSIONS_WEBSTORE_BINDINGS_HELPER_H_ | |
| 6 #define CHROME_RENDERER_EXTENSIONS_WEBSTORE_BINDINGS_HELPER_H_ | |
| 7 | |
| 8 #include "chrome/common/extensions/mojo/inline_install.mojom.h" | |
| 9 #include "extensions/renderer/object_backed_native_handler.h" | |
| 10 #include "mojo/public/cpp/bindings/binding.h" | |
| 11 | |
| 12 namespace extensions { | |
| 13 | |
| 14 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.
| |
| 15 public mojom::InlineInstallStatus { | |
| 16 public: | |
| 17 static void Create(ScriptContext* context, | |
| 18 mojom::InlineInstallStatusRequest request); | |
| 19 | |
| 20 private: | |
| 21 WebstoreBindingsHelper(ScriptContext* context, | |
| 22 mojom::InlineInstallStatusRequest request); | |
| 23 ~WebstoreBindingsHelper() override; | |
| 24 | |
| 25 void InlineInstallStageChanged(api::webstore::InstallStage stage) override; | |
| 26 void InlineInstallDownloadProgress(int percent_downloaded) override; | |
| 27 | |
| 28 mojo::Binding<mojom::InlineInstallStatus> binding_; | |
| 29 }; | |
| 30 | |
| 31 } // namespace extensions | |
| 32 | |
| 33 #endif // CHROME_RENDERER_EXTENSIONS_WEBSTORE_BINDINGS_HELPER_H_ | |
| OLD | NEW |