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

Side by Side Diff: webkit/plugins/npapi/mock_plugin_list.h

Issue 7041005: Content settings extension API: Implement ContentSetting.getResourceIdentifiers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 6 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_PLUGINS_NPAPI_MOCK_PLUGIN_LIST_H_
6 #define WEBKIT_PLUGINS_NPAPI_MOCK_PLUGIN_LIST_H_
7
8 #include "webkit/plugins/npapi/plugin_list.h"
9
10 namespace webkit {
11 namespace npapi {
12
13 // A PluginList for tests that avoids file system IO. There is also no reason
14 // to use |lock_| (but it doesn't hurt either).
15 class MockPluginList : public PluginList {
16 public:
17 MockPluginList(const PluginGroupDefinition* group_definitions,
18 size_t num_group_definitions);
19 virtual ~MockPluginList();
20
21 void AddPluginToLoad(const WebPluginInfo& plugin);
22 void ClearPluginsToLoad();
23
24 private:
25 std::vector<WebPluginInfo> plugins_to_load_;
26
27 // PluginList methods:
28 virtual void LoadPluginsInternal(
29 ScopedVector<PluginGroup>* plugin_groups) OVERRIDE;
30 };
31
32 } // npapi
33 } // webkit
34
35 #endif // WEBKIT_PLUGINS_NPAPI_MOCK_PLUGIN_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698