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

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

Issue 7980011: Convert the PluginService interface to be an async wrapper around PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 3 months 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 #include "chrome/browser/mock_plugin_exceptions_table_model.h" 5 #include "chrome/browser/mock_plugin_exceptions_table_model.h"
6 6
7 #include "webkit/plugins/npapi/plugin_group.h"
8
7 MockPluginExceptionsTableModel::MockPluginExceptionsTableModel( 9 MockPluginExceptionsTableModel::MockPluginExceptionsTableModel(
8 HostContentSettingsMap* map, 10 HostContentSettingsMap* map,
9 HostContentSettingsMap* otr_map) 11 HostContentSettingsMap* otr_map)
10 : PluginExceptionsTableModel(map, otr_map) {} 12 : PluginExceptionsTableModel(map, otr_map) {}
11 13
12 MockPluginExceptionsTableModel::~MockPluginExceptionsTableModel() {} 14 MockPluginExceptionsTableModel::~MockPluginExceptionsTableModel() {}
13 15
14 void MockPluginExceptionsTableModel::set_plugins( 16 void MockPluginExceptionsTableModel::set_plugins(
15 std::vector<webkit::npapi::PluginGroup>& plugins) { 17 std::vector<webkit::npapi::PluginGroup>& plugins) {
16 plugins_ = plugins; 18 plugins_ = plugins;
17 } 19 }
18 20
19 void MockPluginExceptionsTableModel::GetPlugins( 21 void MockPluginExceptionsTableModel::GetPlugins(
20 std::vector<webkit::npapi::PluginGroup>* plugin_groups) { 22 std::vector<webkit::npapi::PluginGroup>* plugin_groups) {
21 *plugin_groups = plugins_; 23 *plugin_groups = plugins_;
22 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698