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

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

Issue 19706002: Remove plugin_list.h includes from chrome tests in preparation for moving webkit/plugins to content… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix posix tests Created 7 years, 5 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
« no previous file with comments | « content/public/browser/plugin_service.h ('k') | webkit/plugins/npapi/mock_plugin_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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();
18 virtual ~MockPluginList();
19
20 void AddPluginToLoad(const WebPluginInfo& plugin);
21 void ClearPluginsToLoad();
22
23 // PluginList:
24 virtual bool GetPluginsNoRefresh(
25 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
26
27 private:
28 std::vector<WebPluginInfo> plugins_to_load_;
29
30 // PluginList methods:
31
32 virtual void LoadPluginsIntoPluginListInternal(
33 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
34 };
35
36 } // npapi
37 } // webkit
38
39 #endif // WEBKIT_PLUGINS_NPAPI_MOCK_PLUGIN_LIST_H_
OLDNEW
« no previous file with comments | « content/public/browser/plugin_service.h ('k') | webkit/plugins/npapi/mock_plugin_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698