OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |