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

Side by Side Diff: extensions/common/extensions_client.h

Issue 503033002: Move ExtensionWarningService and ExtensionsWarningSet to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_web_view_internal
Patch Set: rebase Created 6 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
« no previous file with comments | « extensions/browser/warning_set.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 // Initializes global state. Not done in the constructor because unit tests 38 // Initializes global state. Not done in the constructor because unit tests
39 // can create additional ExtensionsClients because the utility thread runs 39 // can create additional ExtensionsClients because the utility thread runs
40 // in-process. 40 // in-process.
41 virtual void Initialize() = 0; 41 virtual void Initialize() = 0;
42 42
43 // Returns the global PermissionMessageProvider to use to provide permission 43 // Returns the global PermissionMessageProvider to use to provide permission
44 // warning strings. 44 // warning strings.
45 virtual const PermissionMessageProvider& GetPermissionMessageProvider() 45 virtual const PermissionMessageProvider& GetPermissionMessageProvider()
46 const = 0; 46 const = 0;
47 47
48 // Returns the application name. For example, "Chromium" or "app_shell".
49 virtual const std::string GetProductName() = 0;
50
48 // Create a FeatureProvider for a specific feature type, e.g. "permission". 51 // Create a FeatureProvider for a specific feature type, e.g. "permission".
49 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider( 52 virtual scoped_ptr<FeatureProvider> CreateFeatureProvider(
50 const std::string& name) const = 0; 53 const std::string& name) const = 0;
51 54
52 // Create a JSONFeatureProviderSource for a specific feature type, 55 // Create a JSONFeatureProviderSource for a specific feature type,
53 // e.g. "permission". Currently, all features are loaded from 56 // e.g. "permission". Currently, all features are loaded from
54 // JSONFeatureProviderSources. 57 // JSONFeatureProviderSources.
55 // This is used primarily in CreateFeatureProvider, above. 58 // This is used primarily in CreateFeatureProvider, above.
56 virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource( 59 virtual scoped_ptr<JSONFeatureProviderSource> CreateFeatureProviderSource(
57 const std::string& name) const = 0; 60 const std::string& name) const = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Return the extensions client. 100 // Return the extensions client.
98 static ExtensionsClient* Get(); 101 static ExtensionsClient* Get();
99 102
100 // Initialize the extensions system with this extensions client. 103 // Initialize the extensions system with this extensions client.
101 static void Set(ExtensionsClient* client); 104 static void Set(ExtensionsClient* client);
102 }; 105 };
103 106
104 } // namespace extensions 107 } // namespace extensions
105 108
106 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_ 109 #endif // EXTENSIONS_COMMON_EXTENSIONS_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/warning_set.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698