| Index: chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h
|
| diff --git a/chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h b/chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5ec74a127c795dedf33cc5b902a2bab3b543c68c
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_ASH_APP_LIST_APP_SYNC_UI_STATE_WATCHER_H_
|
| +#define CHROME_BROWSER_UI_ASH_APP_LIST_APP_SYNC_UI_STATE_WATCHER_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/compiler_specific.h"
|
| +#include "chrome/browser/ui/ash/app_sync_ui_state_observer.h"
|
| +
|
| +namespace app_list {
|
| +class AppListModel;
|
| +}
|
| +
|
| +class AppSyncUIState;
|
| +class Profile;
|
| +
|
| +// AppSyncUIStateWatcher updates AppListModel status when AppSyncUIState
|
| +// of the given profile changes.
|
| +class AppSyncUIStateWatcher : public AppSyncUIStateObserver {
|
| + public:
|
| + AppSyncUIStateWatcher(Profile* profile, app_list::AppListModel* model);
|
| + virtual ~AppSyncUIStateWatcher();
|
| +
|
| + private:
|
| + // AppSyncUIStateObserver overrides:
|
| + virtual void OnAppSyncUIStatusChanged() OVERRIDE;
|
| +
|
| + AppSyncUIState* app_sync_ui_state_;
|
| + app_list::AppListModel* model_; // Owned by AppListView
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AppSyncUIStateWatcher);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_SYNC_UI_STATE_WATCHER_H_
|
|
|