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

Unified Diff: chrome/browser/extensions/extension_tabs_module.h

Issue 150062: [chromium-reviews] Add getLanguage function to tabs extension (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_tabs_module.h
===================================================================
--- chrome/browser/extensions/extension_tabs_module.h (revision 20334)
+++ chrome/browser/extensions/extension_tabs_module.h (working copy)
@@ -8,6 +8,8 @@
#include <string>
#include "chrome/browser/extensions/extension_function.h"
+#include "chrome/common/notification_service.h"
+#include "chrome/common/notification_registrar.h"
class Browser;
class DictionaryValue;
@@ -86,5 +88,15 @@
class RemoveTabFunction : public SyncExtensionFunction {
virtual bool RunImpl();
};
+class GetTabLanguageFunction : public AsyncExtensionFunction,
+ public NotificationObserver {
+ virtual bool RunImpl();
+ private:
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+ NotificationRegistrar registrar_;
+};
+
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__
Property changes on: chrome\browser\extensions\extension_tabs_module.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698