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

Side by Side Diff: athena/extensions/public/extensions_delegate.h

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « athena/extensions/public/extension_app_model_builder.h ('k') | athena/extensions/shell/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 ATHENA_EXTENSIONS_PUBLIC_EXTENSIONS_DELEGATE_H_
6 #define ATHENA_EXTENSIONS_PUBLIC_EXTENSIONS_DELEGATE_H_
7
8 #include <string>
9
10 #include "athena/athena_export.h"
11 #include "base/memory/scoped_ptr.h"
12
13 namespace content {
14 class BrowserContext;
15 class WebContents;
16 }
17
18 namespace extensions {
19 class ExtensionInstallUI;
20 class ExtensionSet;
21 }
22
23 namespace athena {
24
25 // A delegate interface to extension implentation.
26 class ATHENA_EXPORT ExtensionsDelegate {
27 public:
28 static ExtensionsDelegate* Get(content::BrowserContext* context);
29
30 // Creates the extension delegate.
31 static void CreateExtensionsDelegate(
32 content::BrowserContext* context);
33
34 // Creates the extension delegate for test environment.
35 static void CreateExtensionsDelegateForTest();
36
37 // Deletes the singleton instance. This must be called in the reverse
38 // order of the initialization.
39 static void Shutdown();
40
41 ExtensionsDelegate();
42 virtual ~ExtensionsDelegate();
43
44 virtual content::BrowserContext* GetBrowserContext() const = 0;
45
46 // Returns the set of extensions that are currently installed.
47 virtual const extensions::ExtensionSet& GetInstalledExtensions() = 0;
48
49 // Starts an application. Returns true if the application was
50 // successfully started.
51 // TODO(oshima): Add launcher source type. (see chrome_launcher_types.h)
52 virtual bool LaunchApp(const std::string& app_id) = 0;
53
54 // Unload an application. Returns true if the application was
55 // successfully unloaded.
56 virtual bool UnloadApp(const std::string& app_id) = 0;
57
58 virtual scoped_ptr<extensions::ExtensionInstallUI>
59 CreateExtensionInstallUI() = 0;
60 };
61
62 } // namespace athena
63
64 #endif // ATHENA_EXTENSIONS_PUBLIC_EXTENSIONS_DELEGATE_H_
OLDNEW
« no previous file with comments | « athena/extensions/public/extension_app_model_builder.h ('k') | athena/extensions/shell/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698