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

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

Issue 487843003: ExtensionDelegate to abstract extension implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « athena/extensions/public/DEPS ('k') | athena/extensions/test/test_extensions_delegate.cc » ('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
12 namespace content {
13 class BrowserContext;
14 }
15
16 namespace extensions {
17 class ExtensionSet;
18 }
19
20 namespace athena {
21
22 // A delegate interface to extension implentation.
23 class ATHENA_EXPORT ExtensionsDelegate {
24 public:
25 static ExtensionsDelegate* Get(content::BrowserContext* context);
26
27 // Creates the extension delegate for app shell environment.
28 static void CreateExtensionsDelegateForShell(
29 content::BrowserContext* context);
30
31 // Creates the extension delegate for test environment.
32 static void CreateExtensionsDelegateForTest();
33
34 // Deletes the singleton instance. This must be called in the reverse
35 // order of the initialization.
36 static void Shutdown();
37
38 ExtensionsDelegate();
39 virtual ~ExtensionsDelegate();
40
41 virtual content::BrowserContext* GetBrowserContext() const = 0;
42
43 // Returns the set of extensions that are currently installed.
44 virtual const extensions::ExtensionSet& GetInstalledExtensions() = 0;
45
46 // Launch an application specified by |app_id|.
47 virtual void LaunchApp(const std::string& app_id) = 0;
48 };
49
50 } // namespace athena
51
52 #endif // ATHENA_EXTENSIONS_PUBLIC_EXTENSIONS_DELEGATE_H_
OLDNEW
« no previous file with comments | « athena/extensions/public/DEPS ('k') | athena/extensions/test/test_extensions_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698