| // Copyright (c) 2012 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_TERMINAL_TERMINAL_EXTENSION_HELPER_H_ |
| #define CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_EXTENSION_HELPER_H_ |
| |
| #include <string> |
| |
| #include "url/gurl.h" |
| |
| class Profile; |
| |
| namespace extensions { |
| |
| class Extension; |
| |
| class TerminalExtensionHelper { |
| public: |
| // Returns the crosh extension. It is the first found out of: |
| // 1. nassh dev : okddffdblfhhnmhodogpojmfkjmhinfp |
| // 2. nassh : pnhechapfaindjhompbnflcldabbghjo |
| // 3. crosh builtin: nkoccljplnhpfnfiajclkommnmllphnl |
| static const Extension* GetTerminalExtension(Profile* profile); |
| |
| // Returns Hterm extension's entry point for Crosh. If no HTerm extension is |
| // installed, returns empty url. |
| static GURL GetCroshExtensionURL(Profile* profile); |
| }; |
| |
| } // namespace extensions |
| |
| #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_EXTENSION_HELPER_H_ |