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

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

Issue 265503003: Enable file_handlers and chrome.app.runtime for QuickOffice. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: With blacklist, test Created 6 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_
6 #define EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ 6 #define EXTENSIONS_COMMON_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 18 matching lines...) Expand all
29 Manifest::Type type, 29 Manifest::Type type,
30 Manifest::Location location, 30 Manifest::Location location,
31 int manifest_version, 31 int manifest_version,
32 Platform platform) const OVERRIDE; 32 Platform platform) const OVERRIDE;
33 33
34 virtual Availability IsAvailableToContext(const Extension* extension, 34 virtual Availability IsAvailableToContext(const Extension* extension,
35 Context context, 35 Context context,
36 const GURL& url, 36 const GURL& url,
37 Platform platform) const OVERRIDE; 37 Platform platform) const OVERRIDE;
38 38
39 virtual bool IsIdInBlacklist(const std::string& extension_id) const OVERRIDE;
39 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE; 40 virtual bool IsIdInWhitelist(const std::string& extension_id) const OVERRIDE;
40 virtual bool IsBlockedInServiceWorker() const OVERRIDE; 41 virtual bool IsBlockedInServiceWorker() const OVERRIDE;
41 42
42 protected: 43 protected:
43 // extensions::Feature: 44 // extensions::Feature:
44 virtual std::string GetAvailabilityMessage( 45 virtual std::string GetAvailabilityMessage(
45 AvailabilityResult result, 46 AvailabilityResult result,
46 Manifest::Type type, 47 Manifest::Type type,
47 const GURL& url, 48 const GURL& url,
48 Context context) const OVERRIDE; 49 Context context) const OVERRIDE;
49 50
50 virtual std::set<Context>* GetContexts() OVERRIDE; 51 virtual std::set<Context>* GetContexts() OVERRIDE;
51 52
52 virtual bool IsInternal() const OVERRIDE; 53 virtual bool IsInternal() const OVERRIDE;
53 54
54 private: 55 private:
55 FeatureList features_; 56 FeatureList features_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(ComplexFeature); 58 DISALLOW_COPY_AND_ASSIGN(ComplexFeature);
58 }; 59 };
59 60
60 } // namespace extensions 61 } // namespace extensions
61 62
62 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_ 63 #endif // EXTENSIONS_COMMON_FEATURES_COMPLEX_FEATURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698