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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698