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

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

Issue 6965018: Install CRX updates one at a time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Polish Created 9 years, 6 months 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 | Annotate | Revision Log
OLDNEW
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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 13
14 class CrxInstaller;
15
14 // Implemention of ExtensionServiceInterface with default 16 // Implemention of ExtensionServiceInterface with default
15 // implementations for methods that add failures. You should subclass 17 // implementations for methods that add failures. You should subclass
16 // this and override the methods you care about. 18 // this and override the methods you care about.
17 class TestExtensionService : public ExtensionServiceInterface { 19 class TestExtensionService : public ExtensionServiceInterface {
18 public: 20 public:
19 virtual ~TestExtensionService(); 21 virtual ~TestExtensionService();
20 22
21 // ExtensionServiceInterface implementation. 23 // ExtensionServiceInterface implementation.
22 virtual const ExtensionList* extensions() const OVERRIDE; 24 virtual const ExtensionList* extensions() const OVERRIDE;
23 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE; 25 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE;
24 virtual void UpdateExtension(const std::string& id, 26
25 const FilePath& path, 27 virtual bool UpdateExtension(
26 const GURL& download_url) OVERRIDE; 28 const std::string& id,
29 const FilePath& path,
30 const GURL& download_url,
31 CrxInstaller** out_crx_installer) OVERRIDE;
27 virtual const Extension* GetExtensionById( 32 virtual const Extension* GetExtensionById(
28 const std::string& id, bool include_disabled) const OVERRIDE; 33 const std::string& id, bool include_disabled) const OVERRIDE;
29 virtual const Extension* GetInstalledExtension( 34 virtual const Extension* GetInstalledExtension(
30 const std::string& id) const OVERRIDE; 35 const std::string& id) const OVERRIDE;
31 virtual bool IsExtensionEnabled( 36 virtual bool IsExtensionEnabled(
32 const std::string& extension_id) const OVERRIDE; 37 const std::string& extension_id) const OVERRIDE;
33 virtual bool IsExternalExtensionUninstalled( 38 virtual bool IsExternalExtensionUninstalled(
34 const std::string& extension_id) const OVERRIDE; 39 const std::string& extension_id) const OVERRIDE;
35 40
36 virtual void UpdateExtensionBlacklist( 41 virtual void UpdateExtensionBlacklist(
37 const std::vector<std::string>& blacklist) OVERRIDE; 42 const std::vector<std::string>& blacklist) OVERRIDE;
38 virtual void CheckAdminBlacklist() OVERRIDE; 43 virtual void CheckAdminBlacklist() OVERRIDE;
39 virtual void CheckForUpdatesSoon() OVERRIDE; 44 virtual void CheckForUpdatesSoon() OVERRIDE;
40 virtual bool GetSyncData( 45 virtual bool GetSyncData(
41 const Extension& extension, ExtensionFilter filter, 46 const Extension& extension, ExtensionFilter filter,
42 ExtensionSyncData* extension_sync_data) const OVERRIDE; 47 ExtensionSyncData* extension_sync_data) const OVERRIDE;
43 virtual std::vector<ExtensionSyncData> GetSyncDataList( 48 virtual std::vector<ExtensionSyncData> GetSyncDataList(
44 ExtensionFilter filter) const OVERRIDE; 49 ExtensionFilter filter) const OVERRIDE;
45 virtual void ProcessSyncData( 50 virtual void ProcessSyncData(
46 const ExtensionSyncData& extension_sync_data, 51 const ExtensionSyncData& extension_sync_data,
47 ExtensionFilter filter) OVERRIDE; 52 ExtensionFilter filter) OVERRIDE;
48 }; 53 };
49 54
50 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ 55 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_updater_unittest.cc ('k') | chrome/browser/extensions/test_extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698