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

Side by Side Diff: chrome/common/extensions/features/complex_feature.h

Issue 12522004: Lazily load extension API schemas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 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_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_
6 #define CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ 6 #define CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // extensions::Feature: 29 // extensions::Feature:
30 virtual Availability IsAvailableToManifest(const std::string& extension_id, 30 virtual Availability IsAvailableToManifest(const std::string& extension_id,
31 Manifest::Type type, 31 Manifest::Type type,
32 Location location, 32 Location location,
33 int manifest_version, 33 int manifest_version,
34 Platform platform) const OVERRIDE; 34 Platform platform) const OVERRIDE;
35 35
36 virtual Availability IsAvailableToContext(const Extension* extension, 36 virtual Availability IsAvailableToContext(const Extension* extension,
37 Context context, 37 Context context,
38 const GURL& url,
38 Platform platform) const OVERRIDE; 39 Platform platform) const OVERRIDE;
39 40
40 protected: 41 protected:
41 // extensions::Feature: 42 // extensions::Feature:
42 virtual std::string GetAvailabilityMessage( 43 virtual std::string GetAvailabilityMessage(
43 AvailabilityResult result, 44 AvailabilityResult result,
44 Manifest::Type type) const OVERRIDE; 45 Manifest::Type type) const OVERRIDE;
45 46
46 virtual std::set<Context>* GetContexts() OVERRIDE; 47 virtual std::set<Context>* GetContexts() OVERRIDE;
47 48
48 private: 49 private:
49 FeatureList features_; 50 FeatureList features_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); 52 DISALLOW_COPY_AND_ASSIGN(ComplexFeature);
52 }; 53 };
53 54
54 } // namespace extensions 55 } // namespace extensions
55 56
56 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ 57 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698