| 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 20 matching lines...) Expand all Loading... |
| 31 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; | 31 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; |
| 32 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; | 32 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; |
| 33 virtual std::string GetProduct() const OVERRIDE; | 33 virtual std::string GetProduct() const OVERRIDE; |
| 34 virtual std::string GetUserAgent() const OVERRIDE; | 34 virtual std::string GetUserAgent() const OVERRIDE; |
| 35 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; | 35 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; |
| 36 virtual base::StringPiece GetDataResource( | 36 virtual base::StringPiece GetDataResource( |
| 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_WIN) | |
| 42 virtual bool SandboxPlugin(CommandLine* command_line, | |
| 43 sandbox::TargetPolicy* policy) OVERRIDE; | |
| 44 #endif | |
| 45 | |
| 46 #if defined(OS_MACOSX) && !defined(OS_IOS) | 41 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 47 virtual bool GetSandboxProfileForSandboxType( | 42 virtual bool GetSandboxProfileForSandboxType( |
| 48 int sandbox_type, | 43 int sandbox_type, |
| 49 int* sandbox_profile_resource_id) const OVERRIDE; | 44 int* sandbox_profile_resource_id) const OVERRIDE; |
| 50 virtual std::string GetCarbonInterposePath() const OVERRIDE; | 45 virtual std::string GetCarbonInterposePath() const OVERRIDE; |
| 51 #endif | 46 #endif |
| 52 | 47 |
| 53 // Gets information about the bundled Pepper Flash for field trial. | 48 // Gets information about the bundled Pepper Flash for field trial. |
| 54 // |override_npapi_flash| indicates whether it should take precedence over | 49 // |override_npapi_flash| indicates whether it should take precedence over |
| 55 // the internal NPAPI Flash. | 50 // the internal NPAPI Flash. |
| 56 // Returns false if bundled Pepper Flash is not available. In that case, | 51 // Returns false if bundled Pepper Flash is not available. In that case, |
| 57 // |plugin| and |override_npapi_flash| are not touched. | 52 // |plugin| and |override_npapi_flash| are not touched. |
| 58 // | 53 // |
| 59 // TODO(yzshen): We need this method because currently we are having a field | 54 // TODO(yzshen): We need this method because currently we are having a field |
| 60 // trial with bundled Pepper Flash, and need extra information about how to | 55 // trial with bundled Pepper Flash, and need extra information about how to |
| 61 // order bundled Pepper Flash and internal NPAPI Flash. Once the field trial | 56 // order bundled Pepper Flash and internal NPAPI Flash. Once the field trial |
| 62 // is over, we should merge this into AddPepperPlugins(). | 57 // is over, we should merge this into AddPepperPlugins(). |
| 63 bool GetBundledFieldTrialPepperFlash(content::PepperPluginInfo* plugin, | 58 bool GetBundledFieldTrialPepperFlash(content::PepperPluginInfo* plugin, |
| 64 bool* override_npapi_flash); | 59 bool* override_npapi_flash); |
| 65 }; | 60 }; |
| 66 | 61 |
| 67 } // namespace chrome | 62 } // namespace chrome |
| 68 | 63 |
| 69 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 64 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
| OLD | NEW |