| // 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 |
| static const Extension* GetTerminalExtension(Profile* profile); |
| |
| // Returns crosh URL. chrome-untrusted://crosh is used by default, but it can |
| // be overridden by nassh-dev or nassh. |
| static GURL GetCroshURL(Profile* profile); |
| }; |
| |
| } // namespace extensions |
| |
| #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_EXTENSION_HELPER_H_ |