OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SCRIPT_EXECUTOR_IMPL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SCRIPT_EXECUTOR_IMPL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_SCRIPT_EXECUTOR_IMPL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SCRIPT_EXECUTOR_IMPL_H_ |
7 #pragma once | |
8 | 7 |
9 #include "chrome/browser/extensions/script_executor.h" | 8 #include "chrome/browser/extensions/script_executor.h" |
10 | 9 |
11 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
12 | 11 |
13 namespace extensions { | 12 namespace extensions { |
14 | 13 |
15 // Standard implementation of ScriptExecutor which just sends an IPC to | 14 // Standard implementation of ScriptExecutor which just sends an IPC to |
16 // |web_contents_| to execute the script. | 15 // |web_contents_| to execute the script. |
17 class ScriptExecutorImpl : public ScriptExecutor { | 16 class ScriptExecutorImpl : public ScriptExecutor { |
(...skipping 13 matching lines...) Expand all Loading... |
31 // The next value to use for request_id inExtensionMsg_ExecuteCode_Params. | 30 // The next value to use for request_id inExtensionMsg_ExecuteCode_Params. |
32 int next_request_id_; | 31 int next_request_id_; |
33 | 32 |
34 // The WebContents this is bound to. | 33 // The WebContents this is bound to. |
35 content::WebContents* web_contents_; | 34 content::WebContents* web_contents_; |
36 }; | 35 }; |
37 | 36 |
38 } // namespace extensions | 37 } // namespace extensions |
39 | 38 |
40 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_EXECUTOR_IMPL_H_ | 39 #endif // CHROME_BROWSER_EXTENSIONS_SCRIPT_EXECUTOR_IMPL_H_ |
OLD | NEW |