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

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

Issue 8670012: Extension Settings API: move the API functions into an object SettingsNamepace, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bug / sync Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 public: 133 public:
134 using base::SupportsWeakPtr<ExtensionService>::AsWeakPtr; 134 using base::SupportsWeakPtr<ExtensionService>::AsWeakPtr;
135 135
136 // The name of the directory inside the profile where extensions are 136 // The name of the directory inside the profile where extensions are
137 // installed to. 137 // installed to.
138 static const char* kInstallDirectoryName; 138 static const char* kInstallDirectoryName;
139 139
140 // If auto-updates are turned on, default to running every 5 hours. 140 // If auto-updates are turned on, default to running every 5 hours.
141 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; 141 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5;
142 142
143 // The name of the directory inside the profile where per-extension settings 143 // The name of the directory inside the profile where per-app local settings
144 // are stored. 144 // are stored.
145 static const char* kExtensionSettingsDirectoryName; 145 static const char* kLocalAppSettingsDirectoryName;
146 146
147 // The name of the directory inside the profile where per-app settings 147 // The name of the directory inside the profile where per-extension local
148 // settings are stored.
149 static const char* kLocalExtensionSettingsDirectoryName;
150
151 // The name of the directory inside the profile where per-app synced settings
148 // are stored. 152 // are stored.
149 static const char* kAppSettingsDirectoryName; 153 static const char* kSyncAppSettingsDirectoryName;
154
155 // The name of the directory inside the profile where per-extension synced
156 // settings are stored.
157 static const char* kSyncExtensionSettingsDirectoryName;
150 158
151 // Determine if a given extension download should be treated as if it came 159 // Determine if a given extension download should be treated as if it came
152 // from the gallery. Note that this is requires *both* that the download_url 160 // from the gallery. Note that this is requires *both* that the download_url
153 // match and that the download was referred from a gallery page. 161 // match and that the download was referred from a gallery page.
154 bool IsDownloadFromGallery(const GURL& download_url, 162 bool IsDownloadFromGallery(const GURL& download_url,
155 const GURL& referrer_url); 163 const GURL& referrer_url);
156 164
157 // Returns the Extension of hosted or packaged apps, NULL otherwise. 165 // Returns the Extension of hosted or packaged apps, NULL otherwise.
158 const Extension* GetInstalledApp(const GURL& url); 166 const Extension* GetInstalledApp(const GURL& url);
159 167
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 extensions::ProcessMap process_map_; 811 extensions::ProcessMap process_map_;
804 812
805 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 813 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
806 InstallAppsWithUnlimtedStorage); 814 InstallAppsWithUnlimtedStorage);
807 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 815 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
808 InstallAppsAndCheckStorageProtection); 816 InstallAppsAndCheckStorageProtection);
809 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 817 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
810 }; 818 };
811 819
812 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 820 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698