| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBUI_SYNC_PROMO_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/webui/sync_setup_handler.h" | 9 #include "chrome/browser/ui/webui/sync_setup_handler.h" |
| 10 | 10 |
| 11 class PrefService; |
| 12 |
| 11 // The handler for Javascript messages related to the "sync promo" page. | 13 // The handler for Javascript messages related to the "sync promo" page. |
| 12 class SyncPromoHandler : public SyncSetupHandler { | 14 class SyncPromoHandler : public SyncSetupHandler { |
| 13 public: | 15 public: |
| 14 explicit SyncPromoHandler(ProfileManager* profile_manager); | 16 explicit SyncPromoHandler(ProfileManager* profile_manager); |
| 15 virtual ~SyncPromoHandler(); | 17 virtual ~SyncPromoHandler(); |
| 16 | 18 |
| 17 // Called to register our preferences before we use them (so there will be a | 19 // Called to register our preferences before we use them (so there will be a |
| 18 // default if not present yet). | 20 // default if not present yet). |
| 19 static void RegisterUserPrefs(PrefService* prefs); | 21 static void RegisterUserPrefs(PrefService* prefs); |
| 20 | 22 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 70 |
| 69 // If the user closes the whole window we'll get a close notification from the | 71 // If the user closes the whole window we'll get a close notification from the |
| 70 // tab as well, so this bool acts as a small mutex to only report the close | 72 // tab as well, so this bool acts as a small mutex to only report the close |
| 71 // method once. | 73 // method once. |
| 72 bool window_already_closed_; | 74 bool window_already_closed_; |
| 73 | 75 |
| 74 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); | 76 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_HANDLER_H_ | 79 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_HANDLER_H_ |
| OLD | NEW |