OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ | 5 #ifndef CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ |
6 #define CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ | 6 #define CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/plugin_service.h" | 9 #include "content/public/browser/plugin_service.h" |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 bool IsPluginUnstable(const base::FilePath& plugin_path) override; | 45 bool IsPluginUnstable(const base::FilePath& plugin_path) override; |
46 void RefreshPlugins() override; | 46 void RefreshPlugins() override; |
47 void AddExtraPluginPath(const base::FilePath& path) override; | 47 void AddExtraPluginPath(const base::FilePath& path) override; |
48 void RemoveExtraPluginPath(const base::FilePath& path) override; | 48 void RemoveExtraPluginPath(const base::FilePath& path) override; |
49 void AddExtraPluginDir(const base::FilePath& path) override; | 49 void AddExtraPluginDir(const base::FilePath& path) override; |
50 void RegisterInternalPlugin(const WebPluginInfo& info, | 50 void RegisterInternalPlugin(const WebPluginInfo& info, |
51 bool add_at_beginning) override; | 51 bool add_at_beginning) override; |
52 void UnregisterInternalPlugin(const base::FilePath& path) override; | 52 void UnregisterInternalPlugin(const base::FilePath& path) override; |
53 void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) override; | 53 void GetInternalPlugins(std::vector<WebPluginInfo>* plugins) override; |
54 bool NPAPIPluginsSupported() override; | 54 bool NPAPIPluginsSupported() override; |
55 void EnableNpapiPlugins() override; | |
56 void DisablePluginsDiscoveryForTesting() override; | 55 void DisablePluginsDiscoveryForTesting() override; |
57 #if defined(OS_MACOSX) | 56 #if defined(OS_MACOSX) |
58 void AppActivated() override; | 57 void AppActivated() override; |
59 #elif defined(OS_WIN) | 58 #elif defined(OS_WIN) |
60 bool GetPluginInfoFromWindow(HWND window, | 59 bool GetPluginInfoFromWindow(HWND window, |
61 base::string16* plugin_name, | 60 base::string16* plugin_name, |
62 base::string16* plugin_version) override; | 61 base::string16* plugin_version) override; |
63 #endif | 62 #endif |
64 bool PpapiDevChannelSupported(BrowserContext* browser_context, | 63 bool PpapiDevChannelSupported(BrowserContext* browser_context, |
65 const GURL& document_url) override; | 64 const GURL& document_url) override; |
66 | 65 |
67 private: | 66 private: |
68 DISALLOW_COPY_AND_ASSIGN(FakePluginService); | 67 DISALLOW_COPY_AND_ASSIGN(FakePluginService); |
69 }; | 68 }; |
70 | 69 |
71 } // namespace content | 70 } // namespace content |
72 | 71 |
73 #endif // CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ | 72 #endif // CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ |
OLD | NEW |