Chromium Code Reviews

Side by Side Diff: chrome/browser/extensions/extension_tabs_module.h

Issue 523149: Revert 35735 - Relanding the language detection code.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cld_helper.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...)
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);
135 NotificationRegistrar registrar_; 134 NotificationRegistrar registrar_;
136 DECLARE_EXTENSION_FUNCTION_NAME("tabs.detectLanguage") 135 DECLARE_EXTENSION_FUNCTION_NAME("tabs.detectLanguage")
137 }; 136 };
138 class CaptureVisibleTabFunction : public SyncExtensionFunction { 137 class CaptureVisibleTabFunction : public SyncExtensionFunction {
139 ~CaptureVisibleTabFunction() {} 138 ~CaptureVisibleTabFunction() {}
140 virtual bool RunImpl(); 139 virtual bool RunImpl();
141 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab") 140 DECLARE_EXTENSION_FUNCTION_NAME("tabs.captureVisibleTab")
142 }; 141 };
143 142
144 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ 143 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__
OLDNEW
« no previous file with comments | « chrome/browser/cld_helper.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine