| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 static content::PepperPluginInfo* FindMostRecentPlugin( | 51 static content::PepperPluginInfo* FindMostRecentPlugin( |
| 52 const std::vector<content::PepperPluginInfo*>& plugins); | 52 const std::vector<content::PepperPluginInfo*>& plugins); |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 void SetActiveURL(const GURL& url) override; | 55 void SetActiveURL(const GURL& url) override; |
| 56 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 56 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
| 57 void AddPepperPlugins( | 57 void AddPepperPlugins( |
| 58 std::vector<content::PepperPluginInfo>* plugins) override; | 58 std::vector<content::PepperPluginInfo>* plugins) override; |
| 59 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, | 59 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, |
| 60 std::vector<std::string>* saveable_shemes) override; | 60 std::vector<std::string>* saveable_shemes) override; |
| 61 bool CanSendWhileSwappedOut(const IPC::Message* message) override; |
| 61 std::string GetProduct() const override; | 62 std::string GetProduct() const override; |
| 62 std::string GetUserAgent() const override; | 63 std::string GetUserAgent() const override; |
| 63 base::string16 GetLocalizedString(int message_id) const override; | 64 base::string16 GetLocalizedString(int message_id) const override; |
| 64 base::StringPiece GetDataResource( | 65 base::StringPiece GetDataResource( |
| 65 int resource_id, | 66 int resource_id, |
| 66 ui::ScaleFactor scale_factor) const override; | 67 ui::ScaleFactor scale_factor) const override; |
| 67 base::RefCountedStaticMemory* GetDataResourceBytes( | 68 base::RefCountedStaticMemory* GetDataResourceBytes( |
| 68 int resource_id) const override; | 69 int resource_id) const override; |
| 69 gfx::Image& GetNativeImageNamed(int resource_id) const override; | 70 gfx::Image& GetNativeImageNamed(int resource_id) const override; |
| 70 std::string GetProcessTypeNameInEnglish(int type) override; | 71 std::string GetProcessTypeNameInEnglish(int type) override; |
| 71 | 72 |
| 72 #if defined(OS_MACOSX) && !defined(OS_IOS) | 73 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 73 bool GetSandboxProfileForSandboxType( | 74 bool GetSandboxProfileForSandboxType( |
| 74 int sandbox_type, | 75 int sandbox_type, |
| 75 int* sandbox_profile_resource_id) const override; | 76 int* sandbox_profile_resource_id) const override; |
| 76 #endif | 77 #endif |
| 77 | 78 |
| 78 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | 79 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
| 79 std::set<GURL>* origins) override; | 80 std::set<GURL>* origins) override; |
| 80 | 81 |
| 81 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; | 82 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 85 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
| OLD | NEW |