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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/webui/chrome_web_ui.h" | 9 #include "chrome/browser/ui/webui/chrome_web_ui.h" |
10 | 10 |
11 class Profile; | 11 class Profile; |
12 class PrefService; | 12 class PrefService; |
13 | 13 |
14 // The Web UI handler for chrome://syncpromo. | 14 // The Web UI handler for chrome://syncpromo. |
15 class SyncPromoUI : public ChromeWebUI { | 15 class SyncPromoUI : public ChromeWebUI { |
16 public: | 16 public: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Gets the next page URL from the query portion of the sync promo URL. | 51 // Gets the next page URL from the query portion of the sync promo URL. |
52 static GURL GetNextPageURLForSyncPromoURL(const GURL& url); | 52 static GURL GetNextPageURLForSyncPromoURL(const GURL& url); |
53 | 53 |
54 // Returns true if the sync promo page was ever shown at startup. | 54 // Returns true if the sync promo page was ever shown at startup. |
55 static bool UserHasSeenSyncPromoAtStartup(Profile* profile); | 55 static bool UserHasSeenSyncPromoAtStartup(Profile* profile); |
56 | 56 |
57 private: | 57 private: |
58 DISALLOW_COPY_AND_ASSIGN(SyncPromoUI); | 58 DISALLOW_COPY_AND_ASSIGN(SyncPromoUI); |
59 }; | 59 }; |
60 | 60 |
61 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_UI_H_ | 61 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_UI_H_ |
OLD | NEW |