| Index: chrome/browser/content_settings/content_settings_platform_app_provider.h
|
| diff --git a/chrome/browser/content_settings/content_settings_platform_app_provider.h b/chrome/browser/content_settings/content_settings_platform_app_provider.h
|
| deleted file mode 100644
|
| index d481273c3fe78126039b5689742d11287069d272..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/content_settings/content_settings_platform_app_provider.h
|
| +++ /dev/null
|
| @@ -1,69 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PLATFORM_APP_PROVIDER_H_
|
| -#define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PLATFORM_APP_PROVIDER_H_
|
| -
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "base/synchronization/lock.h"
|
| -#include "chrome/browser/content_settings/content_settings_observable_provider.h"
|
| -#include "chrome/browser/content_settings/content_settings_origin_identifier_value_map.h"
|
| -#include "chrome/common/content_settings.h"
|
| -#include "content/public/browser/notification_observer.h"
|
| -#include "content/public/browser/notification_registrar.h"
|
| -
|
| -class ExtensionService;
|
| -
|
| -namespace extensions {
|
| -class Extension;
|
| -}
|
| -
|
| -namespace content_settings {
|
| -
|
| -// A content settings provider which disables certain plugins for platform apps.
|
| -class PlatformAppProvider : public ObservableProvider,
|
| - public content::NotificationObserver {
|
| - public:
|
| - explicit PlatformAppProvider(ExtensionService* extension_service);
|
| -
|
| - virtual ~PlatformAppProvider();
|
| -
|
| - // ProviderInterface methods:
|
| - virtual RuleIterator* GetRuleIterator(
|
| - ContentSettingsType content_type,
|
| - const ResourceIdentifier& resource_identifier,
|
| - bool incognito) const OVERRIDE;
|
| -
|
| - virtual bool SetWebsiteSetting(
|
| - const ContentSettingsPattern& primary_pattern,
|
| - const ContentSettingsPattern& secondary_pattern,
|
| - ContentSettingsType content_type,
|
| - const ResourceIdentifier& resource_identifier,
|
| - Value* value) OVERRIDE;
|
| -
|
| - virtual void ClearAllContentSettingsRules(ContentSettingsType content_type)
|
| - OVERRIDE;
|
| -
|
| - virtual void ShutdownOnUIThread() OVERRIDE;
|
| -
|
| - // content::NotificationObserver implementation.
|
| - virtual void Observe(int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) OVERRIDE;
|
| - private:
|
| - void SetContentSettingForExtension(const extensions::Extension* extension,
|
| - ContentSetting setting);
|
| -
|
| - OriginIdentifierValueMap value_map_;
|
| -
|
| - // Used around accesses to the |value_map_| list to guarantee thread safety.
|
| - mutable base::Lock lock_;
|
| - scoped_ptr<content::NotificationRegistrar> registrar_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(PlatformAppProvider);
|
| -};
|
| -
|
| -} // namespace content_settings
|
| -
|
| -#endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PLATFORM_APP_PROVIDER_H_
|
|
|