| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // plugin type. This function may return a nullptr if given an empty vector. | 53 // plugin type. This function may return a nullptr if given an empty vector. |
| 54 // The method is only visible for testing purposes. | 54 // The method is only visible for testing purposes. |
| 55 static content::PepperPluginInfo* FindMostRecentPlugin( | 55 static content::PepperPluginInfo* FindMostRecentPlugin( |
| 56 const std::vector<content::PepperPluginInfo*>& plugins); | 56 const std::vector<content::PepperPluginInfo*>& plugins); |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 void SetActiveURL(const GURL& url) override; | 59 void SetActiveURL(const GURL& url) override; |
| 60 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 60 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
| 61 void AddPepperPlugins( | 61 void AddPepperPlugins( |
| 62 std::vector<content::PepperPluginInfo>* plugins) override; | 62 std::vector<content::PepperPluginInfo>* plugins) override; |
| 63 void AddContentDecryptionModules( |
| 64 std::vector<content::CdmInfo>* modules) override; |
| 63 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, | 65 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, |
| 64 std::vector<url::SchemeWithType>* referrer_schemes, | 66 std::vector<url::SchemeWithType>* referrer_schemes, |
| 65 std::vector<std::string>* saveable_shemes) override; | 67 std::vector<std::string>* saveable_shemes) override; |
| 66 bool CanSendWhileSwappedOut(const IPC::Message* message) override; | 68 bool CanSendWhileSwappedOut(const IPC::Message* message) override; |
| 67 std::string GetProduct() const override; | 69 std::string GetProduct() const override; |
| 68 std::string GetUserAgent() const override; | 70 std::string GetUserAgent() const override; |
| 69 base::string16 GetLocalizedString(int message_id) const override; | 71 base::string16 GetLocalizedString(int message_id) const override; |
| 70 base::StringPiece GetDataResource( | 72 base::StringPiece GetDataResource( |
| 71 int resource_id, | 73 int resource_id, |
| 72 ui::ScaleFactor scale_factor) const override; | 74 ui::ScaleFactor scale_factor) const override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 87 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; | 89 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; |
| 88 | 90 |
| 89 bool IsSupplementarySiteIsolationModeEnabled() override; | 91 bool IsSupplementarySiteIsolationModeEnabled() override; |
| 90 base::StringPiece GetOriginTrialPublicKey() override; | 92 base::StringPiece GetOriginTrialPublicKey() override; |
| 91 | 93 |
| 92 private: | 94 private: |
| 93 OriginTrialKeyManager origin_trial_key_manager_; | 95 OriginTrialKeyManager origin_trial_key_manager_; |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 98 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
| OLD | NEW |