OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_EXTENSION_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Implemention of ExtensionServiceInterface with default | 22 // Implemention of ExtensionServiceInterface with default |
23 // implementations for methods that add failures. You should subclass | 23 // implementations for methods that add failures. You should subclass |
24 // this and override the methods you care about. | 24 // this and override the methods you care about. |
25 class TestExtensionService : public ExtensionServiceInterface { | 25 class TestExtensionService : public ExtensionServiceInterface { |
26 public: | 26 public: |
27 virtual ~TestExtensionService(); | 27 virtual ~TestExtensionService(); |
28 | 28 |
29 // ExtensionServiceInterface implementation. | 29 // ExtensionServiceInterface implementation. |
30 virtual const ExtensionSet* extensions() const OVERRIDE; | 30 virtual const ExtensionSet* extensions() const OVERRIDE; |
31 virtual const ExtensionSet* disabled_extensions() const OVERRIDE; | 31 virtual const ExtensionSet* disabled_extensions() const OVERRIDE; |
32 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE; | 32 virtual extensions::PendingExtensionManager* |
| 33 pending_extension_manager() OVERRIDE; |
33 | 34 |
34 virtual bool UpdateExtension( | 35 virtual bool UpdateExtension( |
35 const std::string& id, | 36 const std::string& id, |
36 const FilePath& path, | 37 const FilePath& path, |
37 const GURL& download_url, | 38 const GURL& download_url, |
38 extensions::CrxInstaller** out_crx_installer) OVERRIDE; | 39 extensions::CrxInstaller** out_crx_installer) OVERRIDE; |
39 virtual const extensions::Extension* GetExtensionById( | 40 virtual const extensions::Extension* GetExtensionById( |
40 const std::string& id, bool include_disabled) const OVERRIDE; | 41 const std::string& id, bool include_disabled) const OVERRIDE; |
41 virtual const extensions::Extension* GetInstalledExtension( | 42 virtual const extensions::Extension* GetInstalledExtension( |
42 const std::string& id) const OVERRIDE; | 43 const std::string& id) const OVERRIDE; |
(...skipping 25 matching lines...) Expand all Loading... |
68 | 69 |
69 virtual void UnloadExtension( | 70 virtual void UnloadExtension( |
70 const std::string& extension_id, | 71 const std::string& extension_id, |
71 extension_misc::UnloadedExtensionReason reason) OVERRIDE; | 72 extension_misc::UnloadedExtensionReason reason) OVERRIDE; |
72 | 73 |
73 virtual void SyncExtensionChangeIfNeeded( | 74 virtual void SyncExtensionChangeIfNeeded( |
74 const extensions::Extension& extension) OVERRIDE; | 75 const extensions::Extension& extension) OVERRIDE; |
75 }; | 76 }; |
76 | 77 |
77 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ |
OLD | NEW |