| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_EXTERNAL_COMPONENT_LOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Instances of this class are expected to be created and destroyed on the UI | 22 // Instances of this class are expected to be created and destroyed on the UI |
| 23 // thread and they are expecting public method calls from the UI thread. | 23 // thread and they are expecting public method calls from the UI thread. |
| 24 class ExternalComponentLoader : public ExternalLoader { | 24 class ExternalComponentLoader : public ExternalLoader { |
| 25 public: | 25 public: |
| 26 explicit ExternalComponentLoader(Profile* profile); | 26 explicit ExternalComponentLoader(Profile* profile); |
| 27 | 27 |
| 28 // True if |extension| should be modifiable by the user. | 28 // True if |extension| should be modifiable by the user. |
| 29 static bool IsModifiable(const extensions::Extension* extension); | 29 static bool IsModifiable(const extensions::Extension* extension); |
| 30 | 30 |
| 31 protected: | 31 protected: |
| 32 virtual void StartLoading() OVERRIDE; | 32 virtual void StartLoading() override; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 friend class base::RefCountedThreadSafe<ExternalLoader>; | 35 friend class base::RefCountedThreadSafe<ExternalLoader>; |
| 36 virtual ~ExternalComponentLoader(); | 36 virtual ~ExternalComponentLoader(); |
| 37 | 37 |
| 38 // The profile that this loader is associated with. It listens for | 38 // The profile that this loader is associated with. It listens for |
| 39 // preference changes for that profile. | 39 // preference changes for that profile. |
| 40 Profile* profile_; | 40 Profile* profile_; |
| 41 DISALLOW_COPY_AND_ASSIGN(ExternalComponentLoader); | 41 DISALLOW_COPY_AND_ASSIGN(ExternalComponentLoader); |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace extensions | 44 } // namespace extensions |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_ | 46 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_ |
| OLD | NEW |