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

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

Issue 8375047: Separate the syncing of extension settings and app settings into separate data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
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 <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // The name of the directory inside the profile where extensions are 139 // The name of the directory inside the profile where extensions are
140 // installed to. 140 // installed to.
141 static const char* kInstallDirectoryName; 141 static const char* kInstallDirectoryName;
142 142
143 // If auto-updates are turned on, default to running every 5 hours. 143 // If auto-updates are turned on, default to running every 5 hours.
144 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; 144 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5;
145 145
146 // The name of the directory inside the profile where per-extension settings 146 // The name of the directory inside the profile where per-extension settings
147 // are stored. 147 // are stored.
148 static const char* kSettingsDirectoryName; 148 static const char* kExtensionSettingsDirectoryName;
149
150 // The name of the directory inside the profile where per-app settings
151 // are stored.
152 static const char* kAppSettingsDirectoryName;
149 153
150 // Determine if a given extension download should be treated as if it came 154 // Determine if a given extension download should be treated as if it came
151 // from the gallery. Note that this is requires *both* that the download_url 155 // from the gallery. Note that this is requires *both* that the download_url
152 // match and that the download was referred from a gallery page. 156 // match and that the download was referred from a gallery page.
153 bool IsDownloadFromGallery(const GURL& download_url, 157 bool IsDownloadFromGallery(const GURL& download_url,
154 const GURL& referrer_url); 158 const GURL& referrer_url);
155 159
156 // Returns the Extension of hosted or packaged apps, NULL otherwise. 160 // Returns the Extension of hosted or packaged apps, NULL otherwise.
157 const Extension* GetInstalledApp(const GURL& url); 161 const Extension* GetInstalledApp(const GURL& url);
158 162
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 ExtensionWarningSet extension_warnings_; 846 ExtensionWarningSet extension_warnings_;
843 847
844 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
845 InstallAppsWithUnlimtedStorage); 849 InstallAppsWithUnlimtedStorage);
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
847 InstallAppsAndCheckStorageProtection); 851 InstallAppsAndCheckStorageProtection);
848 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 852 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
849 }; 853 };
850 854
851 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 855 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698