OLD | NEW |
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_VIEWS_FRAME_BROWSER_WINDOW_PROPERTY_MANAGER_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_WINDOW_PROPERTY_MANAGER_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_WINDOW_PROPERTY_MANAGER_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_WINDOW_PROPERTY_MANAGER_WIN_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "components/prefs/pref_change_registrar.h" | 11 #include "components/prefs/pref_change_registrar.h" |
11 | 12 |
12 class BrowserView; | 13 class BrowserView; |
13 | 14 |
14 // This class is resposible for updating the app id and relaunch details of a | 15 // This class is resposible for updating the app id and relaunch details of a |
15 // browser frame. | 16 // browser frame. |
16 class BrowserWindowPropertyManager { | 17 class BrowserWindowPropertyManager { |
17 public: | 18 public: |
18 virtual ~BrowserWindowPropertyManager(); | 19 virtual ~BrowserWindowPropertyManager(); |
19 | 20 |
20 static scoped_ptr<BrowserWindowPropertyManager> | 21 static std::unique_ptr<BrowserWindowPropertyManager> |
21 CreateBrowserWindowPropertyManager(BrowserView* view, HWND hwnd); | 22 CreateBrowserWindowPropertyManager(BrowserView* view, HWND hwnd); |
22 | 23 |
23 private: | 24 private: |
24 BrowserWindowPropertyManager(BrowserView* view, HWND hwnd); | 25 BrowserWindowPropertyManager(BrowserView* view, HWND hwnd); |
25 | 26 |
26 void UpdateWindowProperties(); | 27 void UpdateWindowProperties(); |
27 void OnProfileIconVersionChange(); | 28 void OnProfileIconVersionChange(); |
28 | 29 |
29 PrefChangeRegistrar profile_pref_registrar_; | 30 PrefChangeRegistrar profile_pref_registrar_; |
30 BrowserView* view_; | 31 BrowserView* view_; |
31 const HWND hwnd_; | 32 const HWND hwnd_; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(BrowserWindowPropertyManager); | 34 DISALLOW_COPY_AND_ASSIGN(BrowserWindowPropertyManager); |
34 }; | 35 }; |
35 | 36 |
36 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_WINDOW_PROPERTY_MANAGER_WIN_H_ | 37 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_WINDOW_PROPERTY_MANAGER_WIN_H_ |
OLD | NEW |