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

Side by Side Diff: chrome/browser/content_settings/content_settings_internal_extension_provider.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 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 (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_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_PROV IDER_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_PROV IDER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_PROV IDER_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_PROV IDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void ShutdownOnUIThread() override; 53 void ShutdownOnUIThread() override;
54 54
55 // content::NotificationObserver implementation. 55 // content::NotificationObserver implementation.
56 void Observe(int type, 56 void Observe(int type,
57 const content::NotificationSource& source, 57 const content::NotificationSource& source,
58 const content::NotificationDetails& details) override; 58 const content::NotificationDetails& details) override;
59 59
60 // extensions::ExtensionRegistryObserver implementation. 60 // extensions::ExtensionRegistryObserver implementation.
61 void OnExtensionLoaded(content::BrowserContext* browser_context, 61 void OnExtensionLoaded(content::BrowserContext* browser_context,
62 const extensions::Extension* extension) override; 62 const extensions::Extension* extension) override;
63 void OnExtensionUnloaded( 63 void OnExtensionUnloaded(content::BrowserContext* browser_context,
64 content::BrowserContext* browser_context, 64 const extensions::Extension* extension,
65 const extensions::Extension* extension, 65 extensions::UnloadedExtensionReason reason) override;
66 extensions::UnloadedExtensionInfo::Reason reason) override;
67 66
68 private: 67 private:
69 void ApplyPluginContentSettingsForExtension( 68 void ApplyPluginContentSettingsForExtension(
70 const extensions::Extension* extension, 69 const extensions::Extension* extension,
71 ContentSetting setting); 70 ContentSetting setting);
72 void SetContentSettingForExtension(const extensions::Extension* extension, 71 void SetContentSettingForExtension(const extensions::Extension* extension,
73 ContentSetting setting); 72 ContentSetting setting);
74 void SetContentSettingForExtensionAndResource( 73 void SetContentSettingForExtensionAndResource(
75 const extensions::Extension* extension, 74 const extensions::Extension* extension,
76 const ResourceIdentifier& resource, 75 const ResourceIdentifier& resource,
77 ContentSetting setting); 76 ContentSetting setting);
78 77
79 OriginIdentifierValueMap value_map_; 78 OriginIdentifierValueMap value_map_;
80 79
81 // Used around accesses to the |value_map_| list to guarantee thread safety. 80 // Used around accesses to the |value_map_| list to guarantee thread safety.
82 mutable base::Lock lock_; 81 mutable base::Lock lock_;
83 std::unique_ptr<content::NotificationRegistrar> registrar_; 82 std::unique_ptr<content::NotificationRegistrar> registrar_;
84 83
85 // Extension IDs used by the Chrome Remote Desktop app. 84 // Extension IDs used by the Chrome Remote Desktop app.
86 std::set<std::string> chrome_remote_desktop_; 85 std::set<std::string> chrome_remote_desktop_;
87 86
88 extensions::ExtensionRegistry* extension_registry_; 87 extensions::ExtensionRegistry* extension_registry_;
89 88
90 DISALLOW_COPY_AND_ASSIGN(InternalExtensionProvider); 89 DISALLOW_COPY_AND_ASSIGN(InternalExtensionProvider);
91 }; 90 };
92 91
93 } // namespace content_settings 92 } // namespace content_settings
94 93
95 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_P ROVIDER_H_ 94 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_P ROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698