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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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
OLDNEW
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_EXTENSIONS_DEFAULT_APPS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
6 #define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/extensions/external_extension_provider_impl.h" 10 #include "chrome/browser/extensions/external_extension_provider_impl.h"
11 11
12 class PrefService; 12 class PrefService;
13 class Profile; 13 class Profile;
14 14
15 namespace extensions {
16 class Extension;
17 }
18
15 // Functions and types related to installing default apps. 19 // Functions and types related to installing default apps.
16 namespace default_apps { 20 namespace default_apps {
17 21
18 // These enum values are persisted in the user preferences, so they should not 22 // These enum values are persisted in the user preferences, so they should not
19 // be changed. 23 // be changed.
20 enum InstallState { 24 enum InstallState {
21 kUnknown, 25 kUnknown,
22 kAlwaysProvideDefaultApps, 26 kAlwaysProvideDefaultApps,
23 kNeverProvideDefaultApps 27 kNeverProvideDefaultApps
24 }; 28 };
25 29
26 // Register preference properties used by default apps to maintain 30 // Register preference properties used by default apps to maintain
27 // install state. 31 // install state.
28 void RegisterUserPrefs(PrefService* prefs); 32 void RegisterUserPrefs(PrefService* prefs);
29 33
30 34
31 // A specialization of the ExternalExtensionProviderImpl that conditionally 35 // A specialization of the ExternalExtensionProviderImpl that conditionally
32 // installs apps from the chrome::DIR_DEFAULT_APPS location based on a 36 // installs apps from the chrome::DIR_DEFAULT_APPS location based on a
33 // preference in the profile. 37 // preference in the profile.
34 class Provider : public ExternalExtensionProviderImpl { 38 class Provider : public ExternalExtensionProviderImpl {
35 public: 39 public:
36 Provider(Profile* profile, 40 Provider(Profile* profile,
37 VisitorInterface* service, 41 VisitorInterface* service,
38 ExternalExtensionLoader* loader, 42 ExternalExtensionLoader* loader,
39 Extension::Location crx_location, 43 extensions::Extension::Location crx_location,
40 Extension::Location download_location, 44 extensions::Extension::Location download_location,
41 int creation_flags); 45 int creation_flags);
42 46
43 // ExternalExtensionProviderImpl overrides: 47 // ExternalExtensionProviderImpl overrides:
44 virtual void VisitRegisteredExtension() OVERRIDE; 48 virtual void VisitRegisteredExtension() OVERRIDE;
45 49
46 private: 50 private:
47 Profile* profile_; 51 Profile* profile_;
48 52
49 DISALLOW_COPY_AND_ASSIGN(Provider); 53 DISALLOW_COPY_AND_ASSIGN(Provider);
50 }; 54 };
51 55
52 56
53 } // namespace default_apps 57 } // namespace default_apps
54 58
55 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_ 59 #endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer_browsertest.cc ('k') | chrome/browser/extensions/default_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698