Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Side by Side Diff: chrome/browser/extensions/test_extension_service.h

Issue 102103005: Move c/c/e/extension_set to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 class CrxInstaller; 14 class CrxInstaller;
15 class Extension; 15 class Extension;
16 } 16 }
17 17
18 // Implemention of ExtensionServiceInterface with default 18 // Implemention of ExtensionServiceInterface with default
19 // implementations for methods that add failures. You should subclass 19 // implementations for methods that add failures. You should subclass
20 // this and override the methods you care about. 20 // this and override the methods you care about.
21 class TestExtensionService : public ExtensionServiceInterface { 21 class TestExtensionService : public ExtensionServiceInterface {
22 public: 22 public:
23 virtual ~TestExtensionService(); 23 virtual ~TestExtensionService();
24 24
25 // ExtensionServiceInterface implementation. 25 // ExtensionServiceInterface implementation.
26 virtual const ExtensionSet* extensions() const OVERRIDE; 26 virtual const extensions::ExtensionSet* extensions() const OVERRIDE;
27 virtual const ExtensionSet* disabled_extensions() const OVERRIDE; 27 virtual const extensions::ExtensionSet* disabled_extensions() const OVERRIDE;
28 virtual extensions::PendingExtensionManager* 28 virtual extensions::PendingExtensionManager*
29 pending_extension_manager() OVERRIDE; 29 pending_extension_manager() OVERRIDE;
30 30
31 virtual bool UpdateExtension( 31 virtual bool UpdateExtension(
32 const std::string& id, 32 const std::string& id,
33 const base::FilePath& path, 33 const base::FilePath& path,
34 const GURL& download_url, 34 const GURL& download_url,
35 extensions::CrxInstaller** out_crx_installer) OVERRIDE; 35 extensions::CrxInstaller** out_crx_installer) OVERRIDE;
36 virtual const extensions::Extension* GetExtensionById( 36 virtual const extensions::Extension* GetExtensionById(
37 const std::string& id, bool include_disabled) const OVERRIDE; 37 const std::string& id, bool include_disabled) const OVERRIDE;
(...skipping 20 matching lines...) Expand all
58 const extensions::Extension* extension) OVERRIDE; 58 const extensions::Extension* extension) OVERRIDE;
59 59
60 virtual void UnloadExtension( 60 virtual void UnloadExtension(
61 const std::string& extension_id, 61 const std::string& extension_id,
62 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE; 62 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE;
63 virtual void RemoveComponentExtension(const std::string & extension_id) 63 virtual void RemoveComponentExtension(const std::string & extension_id)
64 OVERRIDE; 64 OVERRIDE;
65 }; 65 };
66 66
67 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ 67 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/script_badge_controller.cc ('k') | chrome/browser/extensions/test_extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698