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/bind.h" | 10 #include "base/bind.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 238 |
239 ExtensionService::NaClModuleInfo::NaClModuleInfo() { | 239 ExtensionService::NaClModuleInfo::NaClModuleInfo() { |
240 } | 240 } |
241 | 241 |
242 ExtensionService::NaClModuleInfo::~NaClModuleInfo() { | 242 ExtensionService::NaClModuleInfo::~NaClModuleInfo() { |
243 } | 243 } |
244 | 244 |
245 // ExtensionService. | 245 // ExtensionService. |
246 | 246 |
247 const char* ExtensionService::kInstallDirectoryName = "Extensions"; | 247 const char* ExtensionService::kInstallDirectoryName = "Extensions"; |
248 const char* ExtensionService::kSettingsDirectoryName = "Extension Settings"; | 248 const char* ExtensionService::kExtensionSettingsDirectoryName = |
| 249 "Extension Settings"; |
| 250 const char* ExtensionService::kAppSettingsDirectoryName = "App Settings"; |
249 | 251 |
250 // Implements IO for the ExtensionService. | 252 // Implements IO for the ExtensionService. |
251 | 253 |
252 class ExtensionServiceBackend | 254 class ExtensionServiceBackend |
253 : public base::RefCountedThreadSafe<ExtensionServiceBackend> { | 255 : public base::RefCountedThreadSafe<ExtensionServiceBackend> { |
254 public: | 256 public: |
255 // |install_directory| is a path where to look for extensions to load. | 257 // |install_directory| is a path where to look for extensions to load. |
256 ExtensionServiceBackend( | 258 ExtensionServiceBackend( |
257 base::WeakPtr<ExtensionService> frontend, | 259 base::WeakPtr<ExtensionService> frontend, |
258 const FilePath& install_directory); | 260 const FilePath& install_directory); |
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3025 | 3027 |
3026 ExtensionService::NaClModuleInfoList::iterator | 3028 ExtensionService::NaClModuleInfoList::iterator |
3027 ExtensionService::FindNaClModule(const GURL& url) { | 3029 ExtensionService::FindNaClModule(const GURL& url) { |
3028 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 3030 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
3029 iter != nacl_module_list_.end(); ++iter) { | 3031 iter != nacl_module_list_.end(); ++iter) { |
3030 if (iter->url == url) | 3032 if (iter->url == url) |
3031 return iter; | 3033 return iter; |
3032 } | 3034 } |
3033 return nacl_module_list_.end(); | 3035 return nacl_module_list_.end(); |
3034 } | 3036 } |
OLD | NEW |