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

Side by Side Diff: extensions/shell/common/shell_extensions_client.h

Issue 2379763003: Extract permission alias info from PermissionsProvider (Closed)
Patch Set: not nesting Alias in AliasProvider Created 4 years, 2 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_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 5 #ifndef EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
6 #define EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 6 #define EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "extensions/common/extensions_alias_provider.h"
10 #include "extensions/common/extensions_client.h" 11 #include "extensions/common/extensions_client.h"
11 #include "extensions/common/permissions/extensions_api_permissions.h" 12 #include "extensions/common/permissions/extensions_api_permissions.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 15
15 // The app_shell implementation of ExtensionsClient. 16 // The app_shell implementation of ExtensionsClient.
16 class ShellExtensionsClient : public ExtensionsClient { 17 class ShellExtensionsClient : public ExtensionsClient {
17 public: 18 public:
18 ShellExtensionsClient(); 19 ShellExtensionsClient();
19 ~ShellExtensionsClient() override; 20 ~ShellExtensionsClient() override;
(...skipping 18 matching lines...) Expand all
38 bool IsScriptableURL(const GURL& url, std::string* error) const override; 39 bool IsScriptableURL(const GURL& url, std::string* error) const override;
39 bool IsAPISchemaGenerated(const std::string& name) const override; 40 bool IsAPISchemaGenerated(const std::string& name) const override;
40 base::StringPiece GetAPISchema(const std::string& name) const override; 41 base::StringPiece GetAPISchema(const std::string& name) const override;
41 bool ShouldSuppressFatalErrors() const override; 42 bool ShouldSuppressFatalErrors() const override;
42 void RecordDidSuppressFatalError() override; 43 void RecordDidSuppressFatalError() override;
43 std::string GetWebstoreBaseURL() const override; 44 std::string GetWebstoreBaseURL() const override;
44 std::string GetWebstoreUpdateURL() const override; 45 std::string GetWebstoreUpdateURL() const override;
45 bool IsBlacklistUpdateURL(const GURL& url) const override; 46 bool IsBlacklistUpdateURL(const GURL& url) const override;
46 47
47 private: 48 private:
49 const ExtensionsAliasProvider extensions_alias_provider_;
48 const ExtensionsAPIPermissions extensions_api_permissions_; 50 const ExtensionsAPIPermissions extensions_api_permissions_;
49 51
50 ScriptingWhitelist scripting_whitelist_; 52 ScriptingWhitelist scripting_whitelist_;
51 53
52 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient); 54 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsClient);
53 }; 55 };
54 56
55 } // namespace extensions 57 } // namespace extensions
56 58
57 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_ 59 #endif // EXTENSIONS_SHELL_COMMON_SHELL_EXTENSIONS_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698