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

Side by Side Diff: chrome/browser/background/background_mode_manager.h

Issue 1420163003: Fixed Windows system tray icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@profile-icon-imagefamily
Patch Set: Fix crash (avoid async call from DisplayClientInstalledNotification). Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // chrome running while waiting for apps to load. This is called when we no 321 // chrome running while waiting for apps to load. This is called when we no
322 // longer need to do this (either because the user has chosen to exit chrome 322 // longer need to do this (either because the user has chosen to exit chrome
323 // manually, or all apps have been loaded). 323 // manually, or all apps have been loaded).
324 void DecrementKeepAliveCountForStartup(); 324 void DecrementKeepAliveCountForStartup();
325 325
326 // Return an appropriate name for a Preferences menu entry. Preferences is 326 // Return an appropriate name for a Preferences menu entry. Preferences is
327 // sometimes called Options or Settings. 327 // sometimes called Options or Settings.
328 base::string16 GetPreferencesMenuLabel(); 328 base::string16 GetPreferencesMenuLabel();
329 329
330 // Create a status tray icon to allow the user to shutdown Chrome when running 330 // Create a status tray icon to allow the user to shutdown Chrome when running
331 // in background mode. Virtual to enable testing. 331 // in background mode. Asynchronous (|status_icon_| will not be ready
332 // immediately). Virtual to enable testing.
332 virtual void CreateStatusTrayIcon(); 333 virtual void CreateStatusTrayIcon();
333 334
335 // Internal implementation of CreateStatusTrayIcon (for use as a posted task).
336 void CreateStatusTrayIconTask();
337
334 // Removes the status tray icon because we are exiting background mode. 338 // Removes the status tray icon because we are exiting background mode.
335 // Virtual to enable testing. 339 // Virtual to enable testing.
336 virtual void RemoveStatusTrayIcon(); 340 virtual void RemoveStatusTrayIcon();
337 341
338 // Create a context menu, or replace/update an existing context menu, for the 342 // Create a context menu, or replace/update an existing context menu, for the
339 // status tray icon which, among other things, allows the user to shutdown 343 // status tray icon which, among other things, allows the user to shutdown
340 // Chrome when running in background mode. All profiles are listed under 344 // Chrome when running in background mode. All profiles are listed under
341 // the one context menu. 345 // the one context menu.
342 virtual void UpdateStatusTrayIconContextMenu(); 346 virtual void UpdateStatusTrayIconContextMenu();
343 347
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 432
429 // Set to true when background mode is keeping Chrome alive. 433 // Set to true when background mode is keeping Chrome alive.
430 bool keeping_alive_; 434 bool keeping_alive_;
431 435
432 base::WeakPtrFactory<BackgroundModeManager> weak_factory_; 436 base::WeakPtrFactory<BackgroundModeManager> weak_factory_;
433 437
434 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); 438 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager);
435 }; 439 };
436 440
437 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ 441 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698