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