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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « chrome/browser/tabs/pinned_tab_service.cc ('k') | chrome/browser/tabs/tab_finder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 static bool IsEnabled(); 39 static bool IsEnabled();
40 40
41 // Returns the tab that matches the specified url. If a tab is found the 41 // Returns the tab that matches the specified url. If a tab is found the
42 // browser containing the tab is set in |existing_browser|. This searches 42 // browser containing the tab is set in |existing_browser|. This searches
43 // in |browser| first before checking any other browsers. 43 // in |browser| first before checking any other browsers.
44 TabContents* FindTab(Browser* browser, 44 TabContents* FindTab(Browser* browser,
45 const GURL& url, 45 const GURL& url,
46 Browser** existing_browser); 46 Browser** existing_browser);
47 47
48 // NotificationObserver overrides: 48 // NotificationObserver overrides:
49 virtual void Observe(NotificationType type, 49 virtual void Observe(int type,
50 const NotificationSource& source, 50 const NotificationSource& source,
51 const NotificationDetails& details) OVERRIDE; 51 const NotificationDetails& details) OVERRIDE;
52 52
53 private: 53 private:
54 friend struct DefaultSingletonTraits<TabFinder>; 54 friend struct DefaultSingletonTraits<TabFinder>;
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;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 CancelableRequestConsumerTSimple<TabContents*> callback_consumer_; 101 CancelableRequestConsumerTSimple<TabContents*> callback_consumer_;
102 102
103 NotificationRegistrar registrar_; 103 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/tabs/pinned_tab_service.cc ('k') | chrome/browser/tabs/tab_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698