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

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

Powered by Google App Engine
This is Rietveld 408576698