Index: chrome/browser/extensions/api/terminal/terminal_extension_helper.h |
diff --git a/chrome/browser/extensions/api/terminal/terminal_extension_helper.h b/chrome/browser/extensions/api/terminal/terminal_extension_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6e47605ba84aedf059fcd8d8560cfeb822dcc28b |
--- /dev/null |
+++ b/chrome/browser/extensions/api/terminal/terminal_extension_helper.h |
@@ -0,0 +1,25 @@ |
+// 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_ |
+#pragma once |
+ |
+#include <string> |
+ |
+#include "googleurl/src/gurl.h" |
+ |
+class Profile; |
+ |
+class TerminalExtensionHelper { |
+ public: |
+ static bool AllowAccessToExtension(Profile* profile, |
jstritar
2012/01/30 23:25:52
nit: add brief comments for these methods?
tbarzic
2012/01/30 23:38:13
Done.
|
+ const std::string& extension_id); |
+ static GURL GetCroshExtensionURL(Profile* profile); |
+ |
+ private: |
+ static const char* GetTerminalExtensionId(Profile* profile); |
+}; |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_EXTENSION_HELPER_H_ |