OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifdef CHROME_PERSONALIZATION | 5 #ifdef CHROME_PERSONALIZATION |
6 | 6 |
7 // TODO(timsteele): Remove this file by finding proper homes for everything in | 7 // TODO(timsteele): Remove this file by finding proper homes for everything in |
8 // trunk. | 8 // trunk. |
9 #ifndef CHROME_BROWSER_SYNC_PERSONALIZATION_H_ | 9 #ifndef CHROME_BROWSER_SYNC_PERSONALIZATION_H_ |
10 #define CHROME_BROWSER_SYNC_PERSONALIZATION_H_ | 10 #define CHROME_BROWSER_SYNC_PERSONALIZATION_H_ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 private: | 57 private: |
58 DISALLOW_COPY_AND_ASSIGN(ProfilePersonalization); | 58 DISALLOW_COPY_AND_ASSIGN(ProfilePersonalization); |
59 }; | 59 }; |
60 | 60 |
61 // Contains methods to perform Personalization-related tasks on behalf of the | 61 // Contains methods to perform Personalization-related tasks on behalf of the |
62 // caller. | 62 // caller. |
63 namespace Personalization { | 63 namespace Personalization { |
64 | 64 |
65 // Checks if P13N is globally disabled or not, and that |profile| has a valid | 65 // Checks if P13N is globally disabled or not, and that |profile| has a valid |
66 // ProfilePersonalization member (it can be NULL for TestingProfiles). | 66 // ProfilePersonalization member (it can be NULL for TestingProfiles). |
67 bool IsP13NDisabled(Profile* profile); | 67 bool IsSyncEnabled(Profile* profile); |
68 | 68 |
69 // Returns whether |url| should be loaded in a DOMUI. | 69 // Returns whether |url| should be loaded in a DOMUI. |
70 bool NeedsDOMUI(const GURL& url); | 70 bool NeedsDOMUI(const GURL& url); |
71 | 71 |
72 // Construct a new ProfilePersonalization and return it so the caller can take | 72 // Construct a new ProfilePersonalization and return it so the caller can take |
73 // ownership. | 73 // ownership. |
74 ProfilePersonalization* CreateProfilePersonalization(Profile* p); | 74 ProfilePersonalization* CreateProfilePersonalization(Profile* p); |
75 | 75 |
76 // The caller of Create...() above should call this when the returned | 76 // The caller of Create...() above should call this when the returned |
77 // ProfilePersonalization object should be deleted. | 77 // ProfilePersonalization object should be deleted. |
(...skipping 22 matching lines...) Expand all Loading... |
100 // Outside of p13n (for the time being) only "gears://" gives this (see | 100 // Outside of p13n (for the time being) only "gears://" gives this (see |
101 // HtmlDialogContents::IsHtmlDialogUrl) for the application shortcut dialog. | 101 // HtmlDialogContents::IsHtmlDialogUrl) for the application shortcut dialog. |
102 // TODO(timsteele): We should have a robust way to handle this to allow more | 102 // TODO(timsteele): We should have a robust way to handle this to allow more |
103 // reuse of our HTML dialog code, perhaps by using a dedicated "dialog-resource" | 103 // reuse of our HTML dialog code, perhaps by using a dedicated "dialog-resource" |
104 // scheme (chrome-resource is coupled to DOM_UI). Figure out if that is the best | 104 // scheme (chrome-resource is coupled to DOM_UI). Figure out if that is the best |
105 // course of action / pitch this idea to chromium-dev. | 105 // course of action / pitch this idea to chromium-dev. |
106 static const char kPersonalizationScheme[] = "cloudy"; | 106 static const char kPersonalizationScheme[] = "cloudy"; |
107 | 107 |
108 #endif // CHROME_BROWSER_SYNC_PERSONALIZATION_H_ | 108 #endif // CHROME_BROWSER_SYNC_PERSONALIZATION_H_ |
109 #endif // CHROME_PERSONALIZATION | 109 #endif // CHROME_PERSONALIZATION |
OLD | NEW |