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

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

Issue 7775008: Enable sync for the settings from the Extension Settings API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review #1 Created 9 years, 3 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; 14 class CrxInstaller;
15 15
16 // Implemention of ExtensionServiceInterface with default 16 // Implemention of ExtensionServiceInterface with default
17 // implementations for methods that add failures. You should subclass 17 // implementations for methods that add failures. You should subclass
18 // this and override the methods you care about. 18 // this and override the methods you care about.
19 class TestExtensionService : public ExtensionServiceInterface { 19 class TestExtensionService : public ExtensionServiceInterface {
20 public: 20 public:
21 virtual ~TestExtensionService(); 21 virtual ~TestExtensionService();
22 22
23 // ExtensionServiceInterface implementation. 23 // ExtensionServiceInterface implementation.
24 virtual const ExtensionList* extensions() const OVERRIDE; 24 virtual const ExtensionList* extensions() const OVERRIDE;
25 virtual const ExtensionList* disabled_extensions() const OVERRIDE;
26 virtual const ExtensionList* terminated_extensions() const OVERRIDE;
25 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE; 27 virtual PendingExtensionManager* pending_extension_manager() OVERRIDE;
26 28
27 virtual bool UpdateExtension( 29 virtual bool UpdateExtension(
28 const std::string& id, 30 const std::string& id,
29 const FilePath& path, 31 const FilePath& path,
30 const GURL& download_url, 32 const GURL& download_url,
31 CrxInstaller** out_crx_installer) OVERRIDE; 33 CrxInstaller** out_crx_installer) OVERRIDE;
32 virtual const Extension* GetExtensionById( 34 virtual const Extension* GetExtensionById(
33 const std::string& id, bool include_disabled) const OVERRIDE; 35 const std::string& id, bool include_disabled) const OVERRIDE;
34 virtual const Extension* GetInstalledExtension( 36 virtual const Extension* GetInstalledExtension(
(...skipping 13 matching lines...) Expand all
48 const SyncDataList& initial_sync_data, 50 const SyncDataList& initial_sync_data,
49 SyncChangeProcessor* sync_processor) OVERRIDE; 51 SyncChangeProcessor* sync_processor) OVERRIDE;
50 virtual void StopSyncing(syncable::ModelType type) OVERRIDE; 52 virtual void StopSyncing(syncable::ModelType type) OVERRIDE;
51 virtual SyncDataList GetAllSyncData(syncable::ModelType type) const OVERRIDE; 53 virtual SyncDataList GetAllSyncData(syncable::ModelType type) const OVERRIDE;
52 virtual SyncError ProcessSyncChanges( 54 virtual SyncError ProcessSyncChanges(
53 const tracked_objects::Location& from_here, 55 const tracked_objects::Location& from_here,
54 const SyncChangeList& change_list) OVERRIDE; 56 const SyncChangeList& change_list) OVERRIDE;
55 }; 57 };
56 58
57 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_ 59 #endif // CHROME_BROWSER_EXTENSIONS_TEST_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698