| 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 AddContentDecryptionModules( |
| 63 std::vector<content::ContentDecryptionModuleRegistration>* modules) |
| 64 override; |
| 62 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, | 65 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, |
| 63 std::vector<url::SchemeWithType>* referrer_schemes, | 66 std::vector<url::SchemeWithType>* referrer_schemes, |
| 64 std::vector<std::string>* saveable_shemes) override; | 67 std::vector<std::string>* saveable_shemes) override; |
| 65 bool CanSendWhileSwappedOut(const IPC::Message* message) override; | 68 bool CanSendWhileSwappedOut(const IPC::Message* message) override; |
| 66 std::string GetProduct() const override; | 69 std::string GetProduct() const override; |
| 67 std::string GetUserAgent() const override; | 70 std::string GetUserAgent() const override; |
| 68 base::string16 GetLocalizedString(int message_id) const override; | 71 base::string16 GetLocalizedString(int message_id) const override; |
| 69 base::StringPiece GetDataResource( | 72 base::StringPiece GetDataResource( |
| 70 int resource_id, | 73 int resource_id, |
| 71 ui::ScaleFactor scale_factor) const override; | 74 ui::ScaleFactor scale_factor) const override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 82 | 85 |
| 83 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | 86 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, |
| 84 std::set<GURL>* origins) override; | 87 std::set<GURL>* origins) override; |
| 85 | 88 |
| 86 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; | 89 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; |
| 87 | 90 |
| 88 bool IsSupplementarySiteIsolationModeEnabled() override; | 91 bool IsSupplementarySiteIsolationModeEnabled() override; |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 94 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
| OLD | NEW |