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

Side by Side Diff: chrome/browser/tabs/tab_finder.h

Issue 8469015: Switch BackgroundContents to use TabContents instead of RenderViewHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittest Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TABS_TAB_FINDER_H_ 5 #ifndef CHROME_BROWSER_TABS_TAB_FINDER_H_
6 #define CHROME_BROWSER_TABS_TAB_FINDER_H_ 6 #define CHROME_BROWSER_TABS_TAB_FINDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 class TabContentsObserverImpl; 56 class TabContentsObserverImpl;
57 57
58 typedef std::map<TabContents*, GURL> TabContentsToURLMap; 58 typedef std::map<TabContents*, GURL> TabContentsToURLMap;
59 typedef std::set<TabContentsObserverImpl*> TabContentsObservers; 59 typedef std::set<TabContentsObserverImpl*> TabContentsObservers;
60 60
61 TabFinder(); 61 TabFinder();
62 virtual ~TabFinder(); 62 virtual ~TabFinder();
63 63
64 // Forwarded from TabContentsObserverImpl. 64 // Forwarded from TabContentsObserverImpl.
65 void DidNavigateAnyFramePostCommit( 65 void DidNavigateAnyFrame(
66 TabContents* source, 66 TabContents* source,
67 const content::LoadCommittedDetails& details, 67 const content::LoadCommittedDetails& details,
68 const ViewHostMsg_FrameNavigate_Params& params); 68 const ViewHostMsg_FrameNavigate_Params& params);
69 69
70 // Returns true if the tab's current url is |url|, or the start of the 70 // Returns true if the tab's current url is |url|, or the start of the
71 // redirect chain for the tab is |url|. 71 // redirect chain for the tab is |url|.
72 bool TabMatchesURL(TabContents* tab_contents, const GURL& url); 72 bool TabMatchesURL(TabContents* tab_contents, const GURL& url);
73 73
74 // Returns the first tab in the specified browser that matches the specified 74 // Returns the first tab in the specified browser that matches the specified
75 // url. Returns NULL if there are no tabs matching the specified url. 75 // url. Returns NULL if there are no tabs matching the specified url.
(...skipping 25 matching lines...) Expand all
101 CancelableRequestConsumerTSimple<TabContents*> callback_consumer_; 101 CancelableRequestConsumerTSimple<TabContents*> callback_consumer_;
102 102
103 content::NotificationRegistrar registrar_; 103 content::NotificationRegistrar registrar_;
104 104
105 TabContentsObservers tab_contents_observers_; 105 TabContentsObservers tab_contents_observers_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(TabFinder); 107 DISALLOW_COPY_AND_ASSIGN(TabFinder);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_TABS_TAB_FINDER_H_ 110 #endif // CHROME_BROWSER_TABS_TAB_FINDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_delegate_helper.cc ('k') | chrome/browser/tabs/tab_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698