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

Side by Side Diff: chrome/browser/ui/ash/launcher/browser_status_monitor.h

Issue 2318303002: Remove stl_util's STLDeleteContainerPairSecondPointers. (Closed)
Patch Set: fix Created 4 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // profile implementations. 93 // profile implementations.
94 virtual void RemoveV1AppFromShelf(Browser* browser); 94 virtual void RemoveV1AppFromShelf(Browser* browser);
95 95
96 // Check if V1 application is currently in the shelf. 96 // Check if V1 application is currently in the shelf.
97 bool IsV1AppInShelf(Browser* browser); 97 bool IsV1AppInShelf(Browser* browser);
98 98
99 private: 99 private:
100 class LocalWebContentsObserver; 100 class LocalWebContentsObserver;
101 class SettingsWindowObserver; 101 class SettingsWindowObserver;
102 102
103 typedef std::map<Browser*, std::string> BrowserToAppIDMap;
104 typedef std::map<content::WebContents*, LocalWebContentsObserver*>
105 WebContentsToObserverMap;
106
107 // Create LocalWebContentsObserver for |contents|. 103 // Create LocalWebContentsObserver for |contents|.
108 void AddWebContentsObserver(content::WebContents* contents); 104 void AddWebContentsObserver(content::WebContents* contents);
109 105
110 // Remove LocalWebContentsObserver for |contents|. 106 // Remove LocalWebContentsObserver for |contents|.
111 void RemoveWebContentsObserver(content::WebContents* contents); 107 void RemoveWebContentsObserver(content::WebContents* contents);
112 108
113 // Returns the ShelfID for |contents|. 109 // Returns the ShelfID for |contents|.
114 ash::ShelfID GetShelfIDForWebContents(content::WebContents* contents); 110 ash::ShelfID GetShelfIDForWebContents(content::WebContents* contents);
115 111
116 // Sets the shelf id for browsers represented by the browser shortcut item. 112 // Sets the shelf id for browsers represented by the browser shortcut item.
117 void SetShelfIDForBrowserWindowContents(Browser* browser, 113 void SetShelfIDForBrowserWindowContents(Browser* browser,
118 content::WebContents* web_contents); 114 content::WebContents* web_contents);
119 115
120 ChromeLauncherController* launcher_controller_; 116 ChromeLauncherController* launcher_controller_;
121 117
122 BrowserToAppIDMap browser_to_app_id_map_; 118 std::map<Browser*, std::string> browser_to_app_id_map_;
123 WebContentsToObserverMap webcontents_to_observer_map_; 119 std::map<content::WebContents*, std::unique_ptr<LocalWebContentsObserver>>
120 webcontents_to_observer_map_;
124 std::unique_ptr<SettingsWindowObserver> settings_window_observer_; 121 std::unique_ptr<SettingsWindowObserver> settings_window_observer_;
125 122
126 BrowserTabStripTracker browser_tab_strip_tracker_; 123 BrowserTabStripTracker browser_tab_strip_tracker_;
127 124
128 DISALLOW_COPY_AND_ASSIGN(BrowserStatusMonitor); 125 DISALLOW_COPY_AND_ASSIGN(BrowserStatusMonitor);
129 }; 126 };
130 127
131 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_ 128 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_BROWSER_STATUS_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698