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

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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // The name of the directory inside the profile where extensions are 140 // The name of the directory inside the profile where extensions are
141 // installed to. 141 // installed to.
142 static const char* kInstallDirectoryName; 142 static const char* kInstallDirectoryName;
143 143
144 // If auto-updates are turned on, default to running every 5 hours. 144 // If auto-updates are turned on, default to running every 5 hours.
145 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5; 145 static const int kDefaultUpdateFrequencySeconds = 60 * 60 * 5;
146 146
147 // The name of the directory inside the profile where per-extension settings 147 // The name of the directory inside the profile where per-extension settings
148 // are stored. 148 // are stored.
149 static const char* kSettingsDirectoryName; 149 static const char* kExtensionSettingsDirectoryName;
150
151 // The name of the directory inside the profile where per-app settings
152 // are stored.
153 static const char* kAppSettingsDirectoryName;
150 154
151 // Determine if a given extension download should be treated as if it came 155 // 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 156 // 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. 157 // match and that the download was referred from a gallery page.
154 bool IsDownloadFromGallery(const GURL& download_url, 158 bool IsDownloadFromGallery(const GURL& download_url,
155 const GURL& referrer_url); 159 const GURL& referrer_url);
156 160
157 // Determine if the downloaded extension came from the theme mini-gallery, 161 // Determine if the downloaded extension came from the theme mini-gallery,
158 // Used to test if we need to show the "Loading" dialog for themes. 162 // Used to test if we need to show the "Loading" dialog for themes.
159 static bool IsDownloadFromMiniGallery(const GURL& download_url); 163 static bool IsDownloadFromMiniGallery(const GURL& download_url);
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 ExtensionWarningSet extension_warnings_; 848 ExtensionWarningSet extension_warnings_;
845 849
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
847 InstallAppsWithUnlimtedStorage); 851 InstallAppsWithUnlimtedStorage);
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
849 InstallAppsAndCheckStorageProtection); 853 InstallAppsAndCheckStorageProtection);
850 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 854 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
851 }; 855 };
852 856
853 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 857 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698