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 #include "chrome/browser/extensions/api/tabs/execute_code_in_tab_function.h" | 5 #include "chrome/browser/extensions/api/tabs/execute_code_in_tab_function.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/extensions/api/tabs/tabs.h" | 10 #include "chrome/browser/extensions/api/tabs/tabs.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 script_executor()->ExecuteScript( | 268 script_executor()->ExecuteScript( |
269 extension->id(), | 269 extension->id(), |
270 script_type, | 270 script_type, |
271 code_string, | 271 code_string, |
272 frame_scope, | 272 frame_scope, |
273 run_at, | 273 run_at, |
274 ScriptExecutor::ISOLATED_WORLD, | 274 ScriptExecutor::ISOLATED_WORLD, |
275 base::Bind(&ExecuteCodeInTabFunction::OnExecuteCodeFinished, this)); | 275 base::Bind(&ExecuteCodeInTabFunction::OnExecuteCodeFinished, this)); |
276 return true; | 276 return true; |
277 } | 277 } |
OLD | NEW |