| OLD | NEW |
| 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 <set> |
| 9 #include <string> |
| 10 |
| 8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 10 #include "components/content_settings/core/browser/content_settings_observable_p
rovider.h" | 13 #include "components/content_settings/core/browser/content_settings_observable_p
rovider.h" |
| 11 #include "components/content_settings/core/browser/content_settings_origin_ident
ifier_value_map.h" | 14 #include "components/content_settings/core/browser/content_settings_origin_ident
ifier_value_map.h" |
| 12 #include "components/content_settings/core/common/content_settings.h" | 15 #include "components/content_settings/core/common/content_settings.h" |
| 13 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 14 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 15 | 18 |
| 16 class Profile; | 19 class Profile; |
| 17 | 20 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const extensions::Extension* extension, | 59 const extensions::Extension* extension, |
| 57 const ResourceIdentifier& resource, | 60 const ResourceIdentifier& resource, |
| 58 ContentSetting setting); | 61 ContentSetting setting); |
| 59 | 62 |
| 60 OriginIdentifierValueMap value_map_; | 63 OriginIdentifierValueMap value_map_; |
| 61 | 64 |
| 62 // Used around accesses to the |value_map_| list to guarantee thread safety. | 65 // Used around accesses to the |value_map_| list to guarantee thread safety. |
| 63 mutable base::Lock lock_; | 66 mutable base::Lock lock_; |
| 64 scoped_ptr<content::NotificationRegistrar> registrar_; | 67 scoped_ptr<content::NotificationRegistrar> registrar_; |
| 65 | 68 |
| 69 // Extension IDs used by the Chrome Remote Desktop app. |
| 70 std::set<std::string> chrome_remote_desktop_; |
| 71 |
| 66 DISALLOW_COPY_AND_ASSIGN(InternalExtensionProvider); | 72 DISALLOW_COPY_AND_ASSIGN(InternalExtensionProvider); |
| 67 }; | 73 }; |
| 68 | 74 |
| 69 } // namespace content_settings | 75 } // namespace content_settings |
| 70 | 76 |
| 71 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_P
ROVIDER_H_ | 77 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_INTERNAL_EXTENSION_P
ROVIDER_H_ |
| OLD | NEW |