OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BOOKMARKS_BOOKMARK_PROMPT_PREFS_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_PROMPT_PREFS_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_PROMPT_PREFS_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_PROMPT_PREFS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 class PrefService; | 10 class PrefService; |
(...skipping 16 matching lines...) Expand all Loading... |
27 // Returns number of times bookmark prompt displayed so far. | 27 // Returns number of times bookmark prompt displayed so far. |
28 int GetPromptImpressionCount() const; | 28 int GetPromptImpressionCount() const; |
29 | 29 |
30 // Increments bookmark prompt impression counter. | 30 // Increments bookmark prompt impression counter. |
31 void IncrementPromptImpressionCount(); | 31 void IncrementPromptImpressionCount(); |
32 | 32 |
33 // Returns true if bookmark prompt feature enabled, otherwise false. | 33 // Returns true if bookmark prompt feature enabled, otherwise false. |
34 bool IsBookmarkPromptEnabled() const; | 34 bool IsBookmarkPromptEnabled() const; |
35 | 35 |
36 // Registers user preferences used by bookmark prompt feature. | 36 // Registers user preferences used by bookmark prompt feature. |
37 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 37 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
38 | 38 |
39 private: | 39 private: |
40 PrefService* prefs_; // Weak. | 40 PrefService* prefs_; // Weak. |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(BookmarkPromptPrefs); | 42 DISALLOW_COPY_AND_ASSIGN(BookmarkPromptPrefs); |
43 }; | 43 }; |
44 | 44 |
45 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_PROMPT_PREFS_H_ | 45 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_PROMPT_PREFS_H_ |
OLD | NEW |