| Index: chrome/browser/content_settings/content_settings_mock_provider.h
|
| diff --git a/chrome/browser/content_settings/content_settings_mock_provider.h b/chrome/browser/content_settings/content_settings_mock_provider.h
|
| deleted file mode 100644
|
| index 6524407a07ca6b60e376c97e49da8f178e77f211..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/content_settings/content_settings_mock_provider.h
|
| +++ /dev/null
|
| @@ -1,59 +0,0 @@
|
| -// Copyright (c) 2011 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_MOCK_PROVIDER_H_
|
| -#define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_
|
| -
|
| -#include <vector>
|
| -
|
| -#include "base/basictypes.h"
|
| -#include "components/content_settings/core/browser/content_settings_observable_provider.h"
|
| -#include "components/content_settings/core/browser/content_settings_origin_identifier_value_map.h"
|
| -#include "components/content_settings/core/common/content_settings_pattern.h"
|
| -#include "components/content_settings/core/common/content_settings_types.h"
|
| -
|
| -namespace content_settings {
|
| -
|
| -// The class MockProvider is a mock for a non default content settings provider.
|
| -class MockProvider : public ObservableProvider {
|
| - public:
|
| - MockProvider();
|
| - explicit MockProvider(bool read_only);
|
| - ~MockProvider() override;
|
| -
|
| - RuleIterator* GetRuleIterator(ContentSettingsType content_type,
|
| - const ResourceIdentifier& resource_identifier,
|
| - bool incognito) const override;
|
| -
|
| - // The MockProvider is only able to store one content setting. So every time
|
| - // this method is called the previously set content settings is overwritten.
|
| - bool SetWebsiteSetting(const ContentSettingsPattern& requesting_url_pattern,
|
| - const ContentSettingsPattern& embedding_url_pattern,
|
| - ContentSettingsType content_type,
|
| - const ResourceIdentifier& resource_identifier,
|
| - base::Value* value) override;
|
| -
|
| - void ClearAllContentSettingsRules(ContentSettingsType content_type) override {
|
| - }
|
| -
|
| - void ShutdownOnUIThread() override;
|
| -
|
| - void set_read_only(bool read_only) {
|
| - read_only_ = read_only;
|
| - }
|
| -
|
| - bool read_only() const {
|
| - return read_only_;
|
| - }
|
| -
|
| - private:
|
| - OriginIdentifierValueMap value_map_;
|
| - bool read_only_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(MockProvider);
|
| -};
|
| -
|
| -} // namespace content_settings
|
| -
|
| -#endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_MOCK_PROVIDER_H_
|
|
|