Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chrome/browser/extensions/default_apps.h

Issue 10834191: new implementation of default apps (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_EXTENSIONS_DEFAULT_APPS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
Aaron Boodman 2012/08/08 22:23:29 Nit: Since this is not really apps-specific, it sh
6 #define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/extensions/external_provider_impl.h" 9 #include "chrome/browser/extensions/external_provider_impl.h"
10 10
11 class PrefService; 11 class PrefService;
12 class Profile; 12 class Profile;
13 13
14 namespace extensions { 14 namespace extensions {
15 class Extension; 15 class Extension;
16 } 16 }
17 17
18 // Functions and types related to installing default apps. 18 // Functions and types related to installing default apps.
19 namespace default_apps { 19 namespace default_apps {
20 20
21 // These enum values are persisted in the user preferences, so they should not 21 // These enum values are persisted in the user preferences, so they should not
22 // be changed. 22 // be changed.
23 enum InstallState { 23 enum InstallState {
24 kUnknown, 24 kUnknown,
25 kNeverProvideDefaultApps,
Aaron Boodman 2012/08/08 22:23:29 Usually when enums have a warning like this, the o
Gaurav 2012/08/10 23:06:55 Ya I missed it. Fixed it now. On 2012/08/08 22:23:
26 // Now unused, leave it for backward compatibility.
25 kAlwaysProvideDefaultApps, 27 kAlwaysProvideDefaultApps,
26 kNeverProvideDefaultApps 28 kAlreadyInstalledDefaultApps
27 }; 29 };
28 30
29 // Register preference properties used by default apps to maintain 31 // Register preference properties used by default apps to maintain
30 // install state. 32 // install state.
31 void RegisterUserPrefs(PrefService* prefs); 33 void RegisterUserPrefs(PrefService* prefs);
32 34
33 35
34 // A specialization of the ExternalProviderImpl that conditionally installs apps 36 // A specialization of the ExternalProviderImpl that conditionally installs apps
35 // from the chrome::DIR_DEFAULT_APPS location based on a preference in the 37 // from the chrome::DIR_DEFAULT_APPS location based on a preference in the
36 // profile. 38 // profile.
(...skipping 11 matching lines...) Expand all
48 50
49 private: 51 private:
50 Profile* profile_; 52 Profile* profile_;
51 53
52 DISALLOW_COPY_AND_ASSIGN(Provider); 54 DISALLOW_COPY_AND_ASSIGN(Provider);
53 }; 55 };
54 56
55 } // namespace default_apps 57 } // namespace default_apps
56 58
57 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ 59 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/default_apps.cc » ('j') | chrome/browser/extensions/default_apps.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698