OLD | NEW |
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 #include "chrome/browser/extensions/extension_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 ExtensionService::NaClModuleInfo::NaClModuleInfo() { | 163 ExtensionService::NaClModuleInfo::NaClModuleInfo() { |
164 } | 164 } |
165 | 165 |
166 ExtensionService::NaClModuleInfo::~NaClModuleInfo() { | 166 ExtensionService::NaClModuleInfo::~NaClModuleInfo() { |
167 } | 167 } |
168 | 168 |
169 // ExtensionService. | 169 // ExtensionService. |
170 | 170 |
171 const char* ExtensionService::kInstallDirectoryName = "Extensions"; | 171 const char* ExtensionService::kInstallDirectoryName = "Extensions"; |
172 const char* ExtensionService::kExtensionSettingsDirectoryName = | 172 |
173 "Extension Settings"; | 173 const char* ExtensionService::kLocalAppSettingsDirectoryName = |
174 const char* ExtensionService::kAppSettingsDirectoryName = "App Settings"; | 174 "Local App Settings"; |
| 175 const char* ExtensionService::kLocalExtensionSettingsDirectoryName = |
| 176 "Local Extension Settings"; |
| 177 const char* ExtensionService::kSyncAppSettingsDirectoryName = |
| 178 "Sync App Settings"; |
| 179 const char* ExtensionService::kSyncExtensionSettingsDirectoryName = |
| 180 "Sync Extension Settings"; |
175 | 181 |
176 void ExtensionService::CheckExternalUninstall(const std::string& id) { | 182 void ExtensionService::CheckExternalUninstall(const std::string& id) { |
177 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 183 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
178 | 184 |
179 // Check if the providers know about this extension. | 185 // Check if the providers know about this extension. |
180 ProviderCollection::const_iterator i; | 186 ProviderCollection::const_iterator i; |
181 for (i = external_extension_providers_.begin(); | 187 for (i = external_extension_providers_.begin(); |
182 i != external_extension_providers_.end(); ++i) { | 188 i != external_extension_providers_.end(); ++i) { |
183 DCHECK(i->get()->IsReady()); | 189 DCHECK(i->get()->IsReady()); |
184 if (i->get()->HasExtension(id)) | 190 if (i->get()->HasExtension(id)) |
(...skipping 2327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2512 | 2518 |
2513 ExtensionService::NaClModuleInfoList::iterator | 2519 ExtensionService::NaClModuleInfoList::iterator |
2514 ExtensionService::FindNaClModule(const GURL& url) { | 2520 ExtensionService::FindNaClModule(const GURL& url) { |
2515 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 2521 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
2516 iter != nacl_module_list_.end(); ++iter) { | 2522 iter != nacl_module_list_.end(); ++iter) { |
2517 if (iter->url == url) | 2523 if (iter->url == url) |
2518 return iter; | 2524 return iter; |
2519 } | 2525 } |
2520 return nacl_module_list_.end(); | 2526 return nacl_module_list_.end(); |
2521 } | 2527 } |
OLD | NEW |