| 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/tabs_api.h" | 5 #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 NULL, | 1338 NULL, |
| 1339 process ? process->GetID() : -1, | 1339 process ? process->GetID() : -1, |
| 1340 &error_)) { | 1340 &error_)) { |
| 1341 return false; | 1341 return false; |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 TabHelper::FromWebContents(web_contents_)-> | 1344 TabHelper::FromWebContents(web_contents_)-> |
| 1345 script_executor()->ExecuteScript( | 1345 script_executor()->ExecuteScript( |
| 1346 extension_id(), | 1346 extension_id(), |
| 1347 ScriptExecutor::JAVASCRIPT, | 1347 ScriptExecutor::JAVASCRIPT, |
| 1348 url.path(), | 1348 url.GetContent(), |
| 1349 ScriptExecutor::TOP_FRAME, | 1349 ScriptExecutor::TOP_FRAME, |
| 1350 UserScript::DOCUMENT_IDLE, | 1350 UserScript::DOCUMENT_IDLE, |
| 1351 ScriptExecutor::MAIN_WORLD, | 1351 ScriptExecutor::MAIN_WORLD, |
| 1352 ScriptExecutor::DEFAULT_PROCESS, | 1352 ScriptExecutor::DEFAULT_PROCESS, |
| 1353 GURL(), | 1353 GURL(), |
| 1354 ScriptExecutor::NO_RESULT, | 1354 ScriptExecutor::NO_RESULT, |
| 1355 base::Bind(&TabsUpdateFunction::OnExecuteCodeFinished, this)); | 1355 base::Bind(&TabsUpdateFunction::OnExecuteCodeFinished, this)); |
| 1356 | 1356 |
| 1357 *is_async = true; | 1357 *is_async = true; |
| 1358 return true; | 1358 return true; |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1995 execute_tab_id_ = tab_id; | 1995 execute_tab_id_ = tab_id; |
| 1996 details_ = details.Pass(); | 1996 details_ = details.Pass(); |
| 1997 return true; | 1997 return true; |
| 1998 } | 1998 } |
| 1999 | 1999 |
| 2000 bool TabsInsertCSSFunction::ShouldInsertCSS() const { | 2000 bool TabsInsertCSSFunction::ShouldInsertCSS() const { |
| 2001 return true; | 2001 return true; |
| 2002 } | 2002 } |
| 2003 | 2003 |
| 2004 } // namespace extensions | 2004 } // namespace extensions |
| OLD | NEW |