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

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

Issue 487843003: ExtensionDelegate to abstract extension implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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_EXTENSION_DELEGATE_H_
6 #define ATHENA_EXTENSIONS_PUBLIC_EXTENSION_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 ExtensionDelegate {
Yoyo Zhou 2014/08/20 20:37:28 nit: We would generally call this ExtensionsDelega
oshima 2014/08/20 21:39:21 Done.
24 public:
25 static ExtensionDelegate* Get(content::BrowserContext* context);
26 static void Shutdown();
Yoyo Zhou 2014/08/20 20:37:28 Document when this gets called.
27
28 // Initializes the extension delegate for app shell environment.
29 static void InitExtensionDelegateForShell(content::BrowserContext* context);
30
31 ExtensionDelegate();
32 virtual ~ExtensionDelegate();
33
34 virtual content::BrowserContext* GetBrowserContext() const = 0;
35
36 // Returns the set of extensions that are currently installed.
37 virtual extensions::ExtensionSet* GetExtensionSet() = 0;
Yoyo Zhou 2014/08/20 20:37:27 I'd prefer something like GetInstalledExtensions.
oshima 2014/08/20 21:39:21 Done.
38
39 // Luanch an applicatino specified by |app_id|.
Yoyo Zhou 2014/08/20 20:37:27 typo: Launch, application
oshima 2014/08/20 21:39:21 Done.
40 virtual void Launch(const std::string& app_id) = 0;
Yoyo Zhou 2014/08/20 20:37:28 LaunchApp would be clearer.
oshima 2014/08/20 21:39:21 Done.
41 };
42
43 } // namespace athena
44
45 #endif // ATHENA_EXTENSIONS_PUBLIC_EXTENSION_DELEGATE_H_
46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698