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 26 matching lines...) Expand all Loading... |
37 int resource_id, | 37 int resource_id, |
38 ui::ScaleFactor scale_factor) const OVERRIDE; | 38 ui::ScaleFactor scale_factor) const OVERRIDE; |
39 virtual gfx::Image& GetNativeImageNamed(int resource_id) const OVERRIDE; | 39 virtual gfx::Image& GetNativeImageNamed(int resource_id) const OVERRIDE; |
40 | 40 |
41 #if defined(OS_MACOSX) && !defined(OS_IOS) | 41 #if defined(OS_MACOSX) && !defined(OS_IOS) |
42 virtual bool GetSandboxProfileForSandboxType( | 42 virtual bool GetSandboxProfileForSandboxType( |
43 int sandbox_type, | 43 int sandbox_type, |
44 int* sandbox_profile_resource_id) const OVERRIDE; | 44 int* sandbox_profile_resource_id) const OVERRIDE; |
45 virtual std::string GetCarbonInterposePath() const OVERRIDE; | 45 virtual std::string GetCarbonInterposePath() const OVERRIDE; |
46 #endif | 46 #endif |
47 | |
48 // Gets information about the bundled Pepper Flash for field trial. | |
49 // |override_npapi_flash| indicates whether it should take precedence over | |
50 // the internal NPAPI Flash. | |
51 // Returns false if bundled Pepper Flash is not available. In that case, | |
52 // |plugin| and |override_npapi_flash| are not touched. | |
53 // | |
54 // TODO(yzshen): We need this method because currently we are having a field | |
55 // trial with bundled Pepper Flash, and need extra information about how to | |
56 // order bundled Pepper Flash and internal NPAPI Flash. Once the field trial | |
57 // is over, we should merge this into AddPepperPlugins(). | |
58 bool GetBundledFieldTrialPepperFlash(content::PepperPluginInfo* plugin, | |
59 bool* override_npapi_flash); | |
60 }; | 47 }; |
61 | 48 |
62 } // namespace chrome | 49 } // namespace chrome |
63 | 50 |
64 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 51 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |