| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 }; | 124 }; |
| 125 class DetectTabLanguageFunction : public AsyncExtensionFunction, | 125 class DetectTabLanguageFunction : public AsyncExtensionFunction, |
| 126 public NotificationObserver { | 126 public NotificationObserver { |
| 127 private: | 127 private: |
| 128 ~DetectTabLanguageFunction() {} | 128 ~DetectTabLanguageFunction() {} |
| 129 virtual bool RunImpl(); | 129 virtual bool RunImpl(); |
| 130 | 130 |
| 131 virtual void Observe(NotificationType type, | 131 virtual void Observe(NotificationType type, |
| 132 const NotificationSource& source, | 132 const NotificationSource& source, |
| 133 const NotificationDetails& details); | 133 const NotificationDetails& details); |
| 134 void GotLanguage(const std::string& language); |
| 134 NotificationRegistrar registrar_; | 135 NotificationRegistrar registrar_; |
| 135 DECLARE_EXTENSION_FUNCTION_NAME("tabs.detectLanguage") | 136 DECLARE_EXTENSION_FUNCTION_NAME("tabs.detectLanguage") |
| 136 }; | 137 }; |
| 137 class CaptureVisibleTabFunction : public SyncExtensionFunction { | 138 class CaptureVisibleTabFunction : public SyncExtensionFunction { |
| 138 ~CaptureVisibleTabFunction() {} | 139 ~CaptureVisibleTabFunction() {} |
| 139 virtual bool RunImpl(); | 140 virtual bool RunImpl(); |
| 140 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") | 141 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ | 144 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |
| OLD | NEW |