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

Side by Side Diff: chrome/browser/ui/panels/panel.h

Issue 1778873002: Replace Increment/DecrementKeepAliveCount by ScopedKeepAlives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@KAObserver
Patch Set: replace the commented dcheck by a dlog Created 4 years, 9 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/panel.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) 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_UI_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 #include "ui/base/base_window.h" 22 #include "ui/base/base_window.h"
23 #include "ui/gfx/geometry/rect.h" 23 #include "ui/gfx/geometry/rect.h"
24 #include "ui/gfx/image/image.h" 24 #include "ui/gfx/image/image.h"
25 25
26 class GURL; 26 class GURL;
27 class NativePanel; 27 class NativePanel;
28 class PanelCollection; 28 class PanelCollection;
29 class PanelHost; 29 class PanelHost;
30 class PanelManager; 30 class PanelManager;
31 class Profile; 31 class Profile;
32 class ScopedKeepAlive;
32 class StackedPanelCollection; 33 class StackedPanelCollection;
33 34
34 namespace content { 35 namespace content {
35 class SiteInstance; 36 class SiteInstance;
36 class WebContents; 37 class WebContents;
37 struct NativeWebKeyboardEvent; 38 struct NativeWebKeyboardEvent;
38 } 39 }
39 40
40 namespace extensions { 41 namespace extensions {
41 class Extension; 42 class Extension;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 405
405 content::NotificationRegistrar registrar_; 406 content::NotificationRegistrar registrar_;
406 extensions::ExtensionRegistry* extension_registry_; 407 extensions::ExtensionRegistry* extension_registry_;
407 const SessionID session_id_; 408 const SessionID session_id_;
408 scoped_ptr<extensions::WindowController> extension_window_controller_; 409 scoped_ptr<extensions::WindowController> extension_window_controller_;
409 scoped_ptr<PanelHost> panel_host_; 410 scoped_ptr<PanelHost> panel_host_;
410 411
411 // Icon showed in the task bar. 412 // Icon showed in the task bar.
412 gfx::Image app_icon_; 413 gfx::Image app_icon_;
413 414
415 scoped_ptr<ScopedKeepAlive> keep_alive_;
416
414 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; 417 base::WeakPtrFactory<Panel> image_loader_ptr_factory_;
415 418
416 DISALLOW_COPY_AND_ASSIGN(Panel); 419 DISALLOW_COPY_AND_ASSIGN(Panel);
417 }; 420 };
418 421
419 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 422 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698