| Index: chrome/browser/extensions/script_executor_impl.h
|
| diff --git a/chrome/browser/extensions/script_executor_impl.h b/chrome/browser/extensions/script_executor_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6ec3324ce2e982c91065bba0cacb41eb56c88f8d
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/script_executor_impl.h
|
| @@ -0,0 +1,40 @@
|
| +// 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_SCRIPT_EXECUTOR_IMPL_H_
|
| +#define CHROME_BROWSER_EXTENSIONS_SCRIPT_EXECUTOR_IMPL_H_
|
| +#pragma once
|
| +
|
| +#include "chrome/browser/extensions/script_executor.h"
|
| +
|
| +#include "base/compiler_specific.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +// Standard implementation of ScriptExecutor which just sends an IPC to
|
| +// |web_contents_| to execute the script.
|
| +class ScriptExecutorImpl : public ScriptExecutor {
|
| + public:
|
| + explicit ScriptExecutorImpl(content::WebContents* web_contents);
|
| +
|
| + virtual ~ScriptExecutorImpl();
|
| +
|
| + virtual void ExecuteScript(const std::string& extension_id,
|
| + bool is_javascript,
|
| + const std::string& code,
|
| + bool all_frames,
|
| + UserScript::RunLocation run_at,
|
| + bool in_main_world,
|
| + const ExecuteScriptCallback& callback) OVERRIDE;
|
| + private:
|
| + // The next value to use for request_id inExtensionMsg_ExecuteCode_Params.
|
| + int next_request_id_;
|
| +
|
| + // The WebContents this is bound to.
|
| + content::WebContents* web_contents_;
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_EXECUTOR_IMPL_H_
|
|
|