| Index: chrome/browser/extensions/execute_code_in_tab_function.h
|
| diff --git a/chrome/browser/extensions/execute_code_in_tab_function.h b/chrome/browser/extensions/execute_code_in_tab_function.h
|
| index 2dbc115d1ba1fc8cbfa5a7218fc72ae12496d1fe..d6a28d51f753c08a947f53e1280ff8635f831325 100644
|
| --- a/chrome/browser/extensions/execute_code_in_tab_function.h
|
| +++ b/chrome/browser/extensions/execute_code_in_tab_function.h
|
| @@ -12,6 +12,8 @@
|
| #include "chrome/common/extensions/extension_resource.h"
|
| #include "content/browser/tab_contents/tab_contents_observer.h"
|
|
|
| +class MessageLoop;
|
| +
|
| // Implement API call tabs.executeScript and tabs.insertCSS.
|
| class ExecuteCodeInTabFunction : public AsyncExtensionFunction,
|
| public TabContentsObserver {
|
| @@ -33,6 +35,17 @@ class ExecuteCodeInTabFunction : public AsyncExtensionFunction,
|
| // arguments has been loaded.
|
| void DidLoadFile(bool success, const std::string& data);
|
|
|
| + // Runs on FILE thread. Loads message bundles for the extension and
|
| + // localizes the CSS data. Calls back DidLoadAndLocalizeFile on the UI thread.
|
| + void LocalizeCSS(
|
| + const std::string& data,
|
| + const std::string& extension_id,
|
| + const FilePath& extension_path,
|
| + const std::string& extension_default_locale);
|
| +
|
| + // Called when contents from the loaded file have been localized.
|
| + void DidLoadAndLocalizeFile(bool success, const std::string& data);
|
| +
|
| // Run in UI thread. Code string contains the code to be executed. Returns
|
| // true on success. If true is returned, this does an AddRef.
|
| bool Execute(const std::string& code_string);
|
|
|