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

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

Issue 2873963005: Use PostTaskAndReplyWithResult in plugin_service_impl.cc. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « content/public/browser/plugin_service.h ('k') | content/test/fake_plugin_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 22 matching lines...) Expand all
33 const url::Origin& main_frame_origin, 33 const url::Origin& main_frame_origin,
34 const std::string& mime_type, 34 const std::string& mime_type,
35 bool allow_wildcard, 35 bool allow_wildcard,
36 bool* is_stale, 36 bool* is_stale,
37 WebPluginInfo* info, 37 WebPluginInfo* info,
38 std::string* actual_mime_type) override; 38 std::string* actual_mime_type) override;
39 bool GetPluginInfoByPath(const base::FilePath& plugin_path, 39 bool GetPluginInfoByPath(const base::FilePath& plugin_path,
40 WebPluginInfo* info) override; 40 WebPluginInfo* info) override;
41 base::string16 GetPluginDisplayNameByPath( 41 base::string16 GetPluginDisplayNameByPath(
42 const base::FilePath& path) override; 42 const base::FilePath& path) override;
43 void GetPlugins(const GetPluginsCallback& callback) override; 43 void GetPlugins(GetPluginsCallback callback) override;
44 PepperPluginInfo* GetRegisteredPpapiPluginInfo( 44 PepperPluginInfo* GetRegisteredPpapiPluginInfo(
45 const base::FilePath& plugin_path) override; 45 const base::FilePath& plugin_path) override;
46 void SetFilter(PluginServiceFilter* filter) override; 46 void SetFilter(PluginServiceFilter* filter) override;
47 PluginServiceFilter* GetFilter() override; 47 PluginServiceFilter* GetFilter() override;
48 bool IsPluginUnstable(const base::FilePath& plugin_path) override; 48 bool IsPluginUnstable(const base::FilePath& plugin_path) override;
49 void RefreshPlugins() override; 49 void RefreshPlugins() 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 PpapiDevChannelSupported(BrowserContext* browser_context, 54 bool PpapiDevChannelSupported(BrowserContext* browser_context,
55 const GURL& document_url) override; 55 const GURL& document_url) override;
56 56
57 private: 57 private:
58 DISALLOW_COPY_AND_ASSIGN(FakePluginService); 58 DISALLOW_COPY_AND_ASSIGN(FakePluginService);
59 }; 59 };
60 60
61 } // namespace content 61 } // namespace content
62 62
63 #endif // CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_ 63 #endif // CONTENT_TEST_FAKE_PLUGIN_SERVICE_H_
OLDNEW
« no previous file with comments | « content/public/browser/plugin_service.h ('k') | content/test/fake_plugin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698