summaryrefslogtreecommitdiffstats
path: root/chrome/browser/mock_plugin_exceptions_table_model.h
blob: 15a1c5b8ec5336c04889ac67b9a78d790732839f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2010 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_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
#define CHROME_BROWSER_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
#pragma once

#include <vector>

#include "chrome/browser/plugin_exceptions_table_model.h"

class MockPluginExceptionsTableModel : public PluginExceptionsTableModel {
 public:
  MockPluginExceptionsTableModel(HostContentSettingsMap* map,
                                 HostContentSettingsMap* otr_map)
      : PluginExceptionsTableModel(map, otr_map) {}
  virtual ~MockPluginExceptionsTableModel() {}

  void set_plugins(std::vector<PluginGroup>& plugins);

 protected:
  virtual void GetPlugins(std::vector<PluginGroup>* plugin_groups);

 private:
  std::vector<PluginGroup> plugins_;
};

#endif  // CHROME_BROWSER_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_