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

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,
46 const GURL& url) const OVERRIDE;
45 47
46 virtual std::set<Context>* GetContexts() OVERRIDE; 48 virtual std::set<Context>* GetContexts() OVERRIDE;
47 49
48 private: 50 private:
49 FeatureList features_; 51 FeatureList features_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); 53 DISALLOW_COPY_AND_ASSIGN(ComplexFeature);
52 }; 54 };
53 55
54 } // namespace extensions 56 } // namespace extensions
55 57
56 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_ 58 #endif // CHROME_COMMON_EXTENSIONS_FEATURES_COMPLEX_FEATURE_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/windows.json ('k') | chrome/common/extensions/features/complex_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698