Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_api.cc

Issue 23549039: Preparing to support fragment resolution against non-hierarchical schemes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spelling mistake in comment fixed Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc ('k') | chrome_frame/navigation_constraints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698