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

Side by Side Diff: content/test/fake_plugin_service.h

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: fix dat merge Created 4 years, 2 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
OLDNEW
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 "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/public/browser/plugin_service.h" 10 #include "content/public/browser/plugin_service.h"
11 11
12 namespace url {
13 class Origin;
14 }
15
12 namespace content { 16 namespace content {
13 17
14 class FakePluginService : public PluginService { 18 class FakePluginService : public PluginService {
15 public: 19 public:
16 FakePluginService(); 20 FakePluginService();
17 ~FakePluginService() override; 21 ~FakePluginService() override;
18 // PluginService implementation: 22 // PluginService implementation:
19 void Init() override; 23 void Init() override;
20 bool GetPluginInfoArray(const GURL& url, 24 bool GetPluginInfoArray(const GURL& url,
21 const std::string& mime_type, 25 const std::string& mime_type,
22 bool allow_wildcard, 26 bool allow_wildcard,
23 std::vector<WebPluginInfo>* info, 27 std::vector<WebPluginInfo>* info,
24 std::vector<std::string>* actual_mime_types) override; 28 std::vector<std::string>* actual_mime_types) override;
25 bool GetPluginInfo(int render_process_id, 29 bool GetPluginInfo(int render_process_id,
26 int render_frame_id, 30 int render_frame_id,
27 ResourceContext* context, 31 ResourceContext* context,
28 const GURL& url, 32 const GURL& url,
29 const GURL& page_url, 33 const url::Origin& main_frame_origin,
30 const std::string& mime_type, 34 const std::string& mime_type,
31 bool allow_wildcard, 35 bool allow_wildcard,
32 bool* is_stale, 36 bool* is_stale,
33 WebPluginInfo* info, 37 WebPluginInfo* info,
34 std::string* actual_mime_type) override; 38 std::string* actual_mime_type) override;
35 bool GetPluginInfoByPath(const base::FilePath& plugin_path, 39 bool GetPluginInfoByPath(const base::FilePath& plugin_path,
36 WebPluginInfo* info) override; 40 WebPluginInfo* info) override;
37 base::string16 GetPluginDisplayNameByPath( 41 base::string16 GetPluginDisplayNameByPath(
38 const base::FilePath& path) override; 42 const base::FilePath& path) override;
39 void GetPlugins(const GetPluginsCallback& callback) override; 43 void GetPlugins(const GetPluginsCallback& callback) override;
(...skipping 10 matching lines...) Expand all
50 bool PpapiDevChannelSupported(BrowserContext* browser_context, 54 bool PpapiDevChannelSupported(BrowserContext* browser_context,
51 const GURL& document_url) override; 55 const GURL& document_url) override;
52 56
53 private: 57 private:
54 DISALLOW_COPY_AND_ASSIGN(FakePluginService); 58 DISALLOW_COPY_AND_ASSIGN(FakePluginService);
55 }; 59 };
56 60
57 } // namespace content 61 } // namespace content
58 62
59 #endif // CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ 63 #endif // CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_plugin_service_filter.cc ('k') | content/test/fake_plugin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698