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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_mojo.h

Issue 2074263002: [Experimental] Fool around with exposing extension bindings via blink Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698