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

Side by Side Diff: chrome/browser/mock_plugin_exceptions_table_model.h

Issue 5516004: Clean up PluginGroup and related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 10 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
6 #define CHROME_BROWSER_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 6 #define CHROME_BROWSER_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "chrome/browser/plugin_exceptions_table_model.h" 11 #include "chrome/browser/plugin_exceptions_table_model.h"
12 12
13 class MockPluginExceptionsTableModel : public PluginExceptionsTableModel { 13 class MockPluginExceptionsTableModel : public PluginExceptionsTableModel {
14 public: 14 public:
15 MockPluginExceptionsTableModel(HostContentSettingsMap* map, 15 MockPluginExceptionsTableModel(HostContentSettingsMap* map,
16 HostContentSettingsMap* otr_map) 16 HostContentSettingsMap* otr_map)
17 : PluginExceptionsTableModel(map, otr_map) {} 17 : PluginExceptionsTableModel(map, otr_map) {}
18 virtual ~MockPluginExceptionsTableModel() {} 18 virtual ~MockPluginExceptionsTableModel() {}
19 19
20 void set_plugins(const NPAPI::PluginList::PluginMap& plugins); 20 void set_plugins(std::vector<PluginGroup>& plugins);
21 21
22 protected: 22 protected:
23 virtual void GetPlugins(NPAPI::PluginList::PluginMap* plugins); 23 virtual void GetPlugins(std::vector<PluginGroup>* plugin_groups);
24 24
25 private: 25 private:
26 NPAPI::PluginList::PluginMap plugins_; 26 std::vector<PluginGroup> plugins_;
27 }; 27 };
28 28
29 #endif // CHROME_BROWSER_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 29 #endif // CHROME_BROWSER_MOCK_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698