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

Unified Diff: chrome/browser/browser.h

Issue 3834002: Make all browser code use browser::Navigate to open tabs.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.h
===================================================================
--- chrome/browser/browser.h (revision 64601)
+++ chrome/browser/browser.h (working copy)
@@ -343,40 +343,6 @@
TabContents* AddSelectedTabWithURL(const GURL& url,
PageTransition::Type transition);
- // Parameters for AddTabWithURL.
- struct AddTabWithURLParams {
- AddTabWithURLParams(const GURL& a_url, PageTransition::Type a_transition);
- ~AddTabWithURLParams();
-
- // Basic configuration.
- GURL url;
- GURL referrer;
- PageTransition::Type transition;
-
- // The index to open the tab at. This could be ignored by the tabstrip
- // depending on the combination of |add_types| specified.
- int index;
-
- // A bitmask of values defined in TabStripModel::AddTabTypes.
- // The default is ADD_SELECTED.
- int add_types;
-
- // If non-NULL, used to render the tab.
- SiteInstance* instance;
-
- // If non-empty, the new tab is an app tab.
- std::string extension_app_id;
-
- // The browser where the tab was added.
- Browser* target;
-
- private:
- AddTabWithURLParams();
- };
-
- // Adds a tab to the browser (or another) and returns the created TabContents.
- TabContents* AddTabWithURL(AddTabWithURLParams* params);
-
// Add a new tab, given a TabContents. A TabContents appropriate to
// display the last committed entry is created and returned.
TabContents* AddTab(TabContents* tab_contents, PageTransition::Type type);
@@ -928,20 +894,6 @@
WindowOpenDisposition *disposition,
PageTransition::Type transition);
- // The low-level function that other OpenURL...() functions call. This
- // determines the appropriate SiteInstance to pass to AddTabWithURL(), focuses
- // the newly created tab as needed, and does other miscellaneous housekeeping.
- // |add_types| is a bitmask of TabStripModel::AddTabTypes and may be used to
- // pass specific flags to the TabStripModel. |add_types| is only used if
- // the disposition is NEW_WINDOW or SUPPRESS_OPEN.
- void OpenURLAtIndex(TabContents* source,
- const GURL& url,
- const GURL& referrer,
- WindowOpenDisposition disposition,
- PageTransition::Type transition,
- int index,
- int add_types);
-
// Shows the Find Bar, optionally selecting the next entry that matches the
// existing search string for that Tab. |forward_direction| controls the
// search direction.
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698