Chromium Code Reviews| Index: chrome/browser/extensions/api/developer_private/developer_private_mojo.h |
| diff --git a/chrome/browser/extensions/api/developer_private/developer_private_mojo.h b/chrome/browser/extensions/api/developer_private/developer_private_mojo.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bd0b293acc4643f888e544067615e26abf1eee25 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/developer_private/developer_private_mojo.h |
| @@ -0,0 +1,44 @@ |
| +// Copyright 2016 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_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MOJO_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MOJO_H_ |
| + |
| +#include "base/macros.h" |
| +#include "extensions/common/api/mojo/developer_private.mojom.h" |
| +#include "mojo/public/cpp/bindings/strong_binding.h" |
| + |
| +namespace content { |
| +class BrowserContext; |
| +} |
| + |
| +namespace extensions { |
| + |
| +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
|
| + public: |
| + DeveloperPrivateMojo(mojom::DeveloperPrivateRequest request, |
| + content::BrowserContext* browser_context); |
| + ~DeveloperPrivateMojo() override; |
| + |
| + void UpdateExtensionConfiguration( |
| + bool is_user_gesture, |
| + mojom::UpdateExtensionConfigurationParamsPtr params, |
| + const UpdateExtensionConfigurationCallback& callback) override; |
| + |
| + static void Create(content::BrowserContext* browser_context, |
| + mojom::DeveloperPrivateRequest request) { |
| + new DeveloperPrivateMojo(std::move(request), browser_context); |
| + } |
| + |
| + private: |
| + mojo::StrongBinding<mojom::DeveloperPrivate> binding_; |
| + |
| + content::BrowserContext* browser_context_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DeveloperPrivateMojo); |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MOJO_H_ |