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

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

Issue 5535002: Decouple killbit testing from external extension providers (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: update Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_REGISTRY_EXTENSION_PROVIDER_WIN_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set>
10 #include <string>
11
12 #include "chrome/browser/extensions/external_extension_provider.h" 9 #include "chrome/browser/extensions/external_extension_provider.h"
13 10
14 class Version; 11 class Version;
15 12
16 // A specialization of the ExternalExtensionProvider that uses the Registry to 13 // A specialization of the ExternalExtensionProvider that uses the Registry to
17 // look up which external extensions are registered. 14 // look up which external extensions are registered.
18 class ExternalRegistryExtensionProvider : public ExternalExtensionProvider { 15 class ExternalRegistryExtensionProvider : public ExternalExtensionProvider {
19 public: 16 public:
20 ExternalRegistryExtensionProvider(); 17 ExternalRegistryExtensionProvider();
21 virtual ~ExternalRegistryExtensionProvider(); 18 virtual ~ExternalRegistryExtensionProvider();
22 19
23 // ExternalExtensionProvider implementation: 20 // ExternalExtensionProvider implementation:
24 virtual void VisitRegisteredExtension( 21 virtual void VisitRegisteredExtension(Visitor* visitor) const;
25 Visitor* visitor, const std::set<std::string>& ids_to_ignore) const;
26 22
27 virtual bool HasExtension(const std::string& id) const; 23 virtual bool HasExtension(const std::string& id) const;
28 24
29 virtual bool GetExtensionDetails(const std::string& id, 25 virtual bool GetExtensionDetails(const std::string& id,
30 Extension::Location* location, 26 Extension::Location* location,
31 scoped_ptr<Version>* version) const; 27 scoped_ptr<Version>* version) const;
32 }; 28 };
33 29
34 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_ 30 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698