| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 ExtensionService::NaClModuleInfo::NaClModuleInfo() { | 240 ExtensionService::NaClModuleInfo::NaClModuleInfo() { |
| 241 } | 241 } |
| 242 | 242 |
| 243 ExtensionService::NaClModuleInfo::~NaClModuleInfo() { | 243 ExtensionService::NaClModuleInfo::~NaClModuleInfo() { |
| 244 } | 244 } |
| 245 | 245 |
| 246 // ExtensionService. | 246 // ExtensionService. |
| 247 | 247 |
| 248 const char* ExtensionService::kInstallDirectoryName = "Extensions"; | 248 const char* ExtensionService::kInstallDirectoryName = "Extensions"; |
| 249 const char* ExtensionService::kSettingsDirectoryName = "Extension Settings"; | 249 const char* ExtensionService::kExtensionSettingsDirectoryName = |
| 250 "Extension Settings"; |
| 251 const char* ExtensionService::kAppSettingsDirectoryName = "App Settings"; |
| 250 | 252 |
| 251 // Implements IO for the ExtensionService. | 253 // Implements IO for the ExtensionService. |
| 252 | 254 |
| 253 class ExtensionServiceBackend | 255 class ExtensionServiceBackend |
| 254 : public base::RefCountedThreadSafe<ExtensionServiceBackend> { | 256 : public base::RefCountedThreadSafe<ExtensionServiceBackend> { |
| 255 public: | 257 public: |
| 256 // |install_directory| is a path where to look for extensions to load. | 258 // |install_directory| is a path where to look for extensions to load. |
| 257 ExtensionServiceBackend( | 259 ExtensionServiceBackend( |
| 258 base::WeakPtr<ExtensionService> frontend, | 260 base::WeakPtr<ExtensionService> frontend, |
| 259 const FilePath& install_directory); | 261 const FilePath& install_directory); |
| (...skipping 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 | 3060 |
| 3059 ExtensionService::NaClModuleInfoList::iterator | 3061 ExtensionService::NaClModuleInfoList::iterator |
| 3060 ExtensionService::FindNaClModule(const GURL& url) { | 3062 ExtensionService::FindNaClModule(const GURL& url) { |
| 3061 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); | 3063 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); |
| 3062 iter != nacl_module_list_.end(); ++iter) { | 3064 iter != nacl_module_list_.end(); ++iter) { |
| 3063 if (iter->url == url) | 3065 if (iter->url == url) |
| 3064 return iter; | 3066 return iter; |
| 3065 } | 3067 } |
| 3066 return nacl_module_list_.end(); | 3068 return nacl_module_list_.end(); |
| 3067 } | 3069 } |
| OLD | NEW |