Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MOJO_H _ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MOJO_H _ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "extensions/common/api/mojo/developer_private.mojom.h" | |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 11 | |
| 12 namespace content { | |
| 13 class BrowserContext; | |
| 14 } | |
| 15 | |
| 16 namespace extensions { | |
| 17 | |
| 18 class DeveloperPrivateMojo : public mojom::DeveloperPrivate { | |
|
Ken Rockot(use gerrit already)
2016/06/20 17:19:24
Sticking "Mojo" suffixes onto things is an unfortu
Devlin
2016/06/20 17:49:23
Names are TBD (read: hacky things that I threw tog
| |
| 19 public: | |
| 20 DeveloperPrivateMojo(mojom::DeveloperPrivateRequest request, | |
| 21 content::BrowserContext* browser_context); | |
| 22 ~DeveloperPrivateMojo() override; | |
| 23 | |
| 24 void UpdateExtensionConfiguration( | |
| 25 bool is_user_gesture, | |
| 26 mojom::UpdateExtensionConfigurationParamsPtr params, | |
| 27 const UpdateExtensionConfigurationCallback& callback) override; | |
| 28 | |
| 29 static void Create(content::BrowserContext* browser_context, | |
| 30 mojom::DeveloperPrivateRequest request) { | |
| 31 new DeveloperPrivateMojo(std::move(request), browser_context); | |
| 32 } | |
| 33 | |
| 34 private: | |
| 35 mojo::StrongBinding<mojom::DeveloperPrivate> binding_; | |
| 36 | |
| 37 content::BrowserContext* browser_context_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateMojo); | |
| 40 }; | |
| 41 | |
| 42 } // namespace extensions | |
| 43 | |
| 44 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MOJ O_H_ | |
| OLD | NEW |