OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... | |
41 content::PepperPluginInfo::GetInterfaceFunc get_interface, | 41 content::PepperPluginInfo::GetInterfaceFunc get_interface, |
42 content::PepperPluginInfo::PPP_InitializeModuleFunc initialize_module, | 42 content::PepperPluginInfo::PPP_InitializeModuleFunc initialize_module, |
43 content::PepperPluginInfo::PPP_ShutdownModuleFunc shutdown_module); | 43 content::PepperPluginInfo::PPP_ShutdownModuleFunc shutdown_module); |
44 #endif | 44 #endif |
45 | 45 |
46 #if defined(ENABLE_PLUGINS) | 46 #if defined(ENABLE_PLUGINS) |
47 static void SetPDFEntryFunctions( | 47 static void SetPDFEntryFunctions( |
48 content::PepperPluginInfo::GetInterfaceFunc get_interface, | 48 content::PepperPluginInfo::GetInterfaceFunc get_interface, |
49 content::PepperPluginInfo::PPP_InitializeModuleFunc initialize_module, | 49 content::PepperPluginInfo::PPP_InitializeModuleFunc initialize_module, |
50 content::PepperPluginInfo::PPP_ShutdownModuleFunc shutdown_module); | 50 content::PepperPluginInfo::PPP_ShutdownModuleFunc shutdown_module); |
51 | |
52 // This returns the most recent plugin based on the plugin versions. | |
53 // It does not make sense to call this on a vector that contains more than one | |
54 // plugin type. This function may return a nullptr. | |
Bernhard Bauer
2015/08/13 12:40:26
Under which circumstances?
Greg K
2015/08/13 22:00:44
Done.
| |
55 static content::PepperPluginInfo* FindMostRecentPlugin( | |
Bernhard Bauer
2015/08/13 12:40:26
Is this method called outside of ChromeContentClie
Greg K
2015/08/13 22:00:44
Done.
| |
56 const std::vector<content::PepperPluginInfo*>& plugins); | |
51 #endif | 57 #endif |
52 | 58 |
53 void SetActiveURL(const GURL& url) override; | 59 void SetActiveURL(const GURL& url) override; |
54 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 60 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
55 void AddPepperPlugins( | 61 void AddPepperPlugins( |
56 std::vector<content::PepperPluginInfo>* plugins) override; | 62 std::vector<content::PepperPluginInfo>* plugins) override; |
57 void AddAdditionalSchemes(std::vector<std::string>* standard_schemes, | 63 void AddAdditionalSchemes(std::vector<std::string>* standard_schemes, |
58 std::vector<std::string>* saveable_shemes) override; | 64 std::vector<std::string>* saveable_shemes) override; |
59 std::string GetProduct() const override; | 65 std::string GetProduct() const override; |
60 std::string GetUserAgent() const override; | 66 std::string GetUserAgent() const override; |
(...skipping 12 matching lines...) Expand all Loading... | |
73 int* sandbox_profile_resource_id) const override; | 79 int* sandbox_profile_resource_id) const override; |
74 #endif | 80 #endif |
75 | 81 |
76 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | 82 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
77 std::set<GURL>* origins) override; | 83 std::set<GURL>* origins) override; |
78 | 84 |
79 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; | 85 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; |
80 }; | 86 }; |
81 | 87 |
82 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 88 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |