| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // plugin type. This function may return a nullptr if given an empty vector. | 52 // plugin type. This function may return a nullptr if given an empty vector. |
| 53 // The method is only visible for testing purposes. | 53 // The method is only visible for testing purposes. |
| 54 static content::PepperPluginInfo* FindMostRecentPlugin( | 54 static content::PepperPluginInfo* FindMostRecentPlugin( |
| 55 const std::vector<content::PepperPluginInfo*>& plugins); | 55 const std::vector<content::PepperPluginInfo*>& plugins); |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 void SetActiveURL(const GURL& url) override; | 58 void SetActiveURL(const GURL& url) override; |
| 59 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 59 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
| 60 void AddPepperPlugins( | 60 void AddPepperPlugins( |
| 61 std::vector<content::PepperPluginInfo>* plugins) override; | 61 std::vector<content::PepperPluginInfo>* plugins) override; |
| 62 void AddKeySystems( |
| 63 std::vector<content::KeySystemRegistration>* key_systems) override; |
| 62 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, | 64 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, |
| 63 std::vector<std::string>* saveable_shemes) override; | 65 std::vector<std::string>* saveable_shemes) override; |
| 64 bool CanSendWhileSwappedOut(const IPC::Message* message) override; | 66 bool CanSendWhileSwappedOut(const IPC::Message* message) override; |
| 65 std::string GetProduct() const override; | 67 std::string GetProduct() const override; |
| 66 std::string GetUserAgent() const override; | 68 std::string GetUserAgent() const override; |
| 67 base::string16 GetLocalizedString(int message_id) const override; | 69 base::string16 GetLocalizedString(int message_id) const override; |
| 68 base::StringPiece GetDataResource( | 70 base::StringPiece GetDataResource( |
| 69 int resource_id, | 71 int resource_id, |
| 70 ui::ScaleFactor scale_factor) const override; | 72 ui::ScaleFactor scale_factor) const override; |
| 71 base::RefCountedStaticMemory* GetDataResourceBytes( | 73 base::RefCountedStaticMemory* GetDataResourceBytes( |
| 72 int resource_id) const override; | 74 int resource_id) const override; |
| 73 gfx::Image& GetNativeImageNamed(int resource_id) const override; | 75 gfx::Image& GetNativeImageNamed(int resource_id) const override; |
| 74 std::string GetProcessTypeNameInEnglish(int type) override; | 76 std::string GetProcessTypeNameInEnglish(int type) override; |
| 75 | 77 |
| 76 #if defined(OS_MACOSX) && !defined(OS_IOS) | 78 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 77 bool GetSandboxProfileForSandboxType( | 79 bool GetSandboxProfileForSandboxType( |
| 78 int sandbox_type, | 80 int sandbox_type, |
| 79 int* sandbox_profile_resource_id) const override; | 81 int* sandbox_profile_resource_id) const override; |
| 80 #endif | 82 #endif |
| 81 | 83 |
| 82 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | 84 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
| 83 std::set<GURL>* origins) override; | 85 std::set<GURL>* origins) override; |
| 84 | 86 |
| 85 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; | 87 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; |
| 86 | 88 |
| 87 bool IsSupplementarySiteIsolationModeEnabled() override; | 89 bool IsSupplementarySiteIsolationModeEnabled() override; |
| 88 }; | 90 }; |
| 89 | 91 |
| 90 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 92 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
| OLD | NEW |