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 <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static content::PepperPluginInfo* FindMostRecentPlugin( | 67 static content::PepperPluginInfo* FindMostRecentPlugin( |
68 const std::vector<std::unique_ptr<content::PepperPluginInfo>>& plugins); | 68 const std::vector<std::unique_ptr<content::PepperPluginInfo>>& plugins); |
69 #endif | 69 #endif |
70 | 70 |
71 void SetActiveURL(const GURL& url) override; | 71 void SetActiveURL(const GURL& url) override; |
72 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 72 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
73 void AddPepperPlugins( | 73 void AddPepperPlugins( |
74 std::vector<content::PepperPluginInfo>* plugins) override; | 74 std::vector<content::PepperPluginInfo>* plugins) override; |
75 void AddContentDecryptionModules( | 75 void AddContentDecryptionModules( |
76 std::vector<content::CdmInfo>* cdms) override; | 76 std::vector<content::CdmInfo>* cdms) override; |
77 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, | 77 void AddAdditionalSchemes(Schemes* schemes) override; |
78 std::vector<url::SchemeWithType>* referrer_schemes, | |
79 std::vector<std::string>* saveable_shemes) override; | |
80 std::string GetProduct() const override; | 78 std::string GetProduct() const override; |
81 std::string GetUserAgent() const override; | 79 std::string GetUserAgent() const override; |
82 base::string16 GetLocalizedString(int message_id) const override; | 80 base::string16 GetLocalizedString(int message_id) const override; |
83 base::StringPiece GetDataResource( | 81 base::StringPiece GetDataResource( |
84 int resource_id, | 82 int resource_id, |
85 ui::ScaleFactor scale_factor) const override; | 83 ui::ScaleFactor scale_factor) const override; |
86 base::RefCountedMemory* GetDataResourceBytes( | 84 base::RefCountedMemory* GetDataResourceBytes( |
87 int resource_id) const override; | 85 int resource_id) const override; |
88 gfx::Image& GetNativeImageNamed(int resource_id) const override; | 86 gfx::Image& GetNativeImageNamed(int resource_id) const override; |
89 std::string GetProcessTypeNameInEnglish(int type) override; | 87 std::string GetProcessTypeNameInEnglish(int type) override; |
90 | 88 |
91 #if defined(OS_MACOSX) | 89 #if defined(OS_MACOSX) |
92 bool GetSandboxProfileForSandboxType( | 90 bool GetSandboxProfileForSandboxType( |
93 int sandbox_type, | 91 int sandbox_type, |
94 int* sandbox_profile_resource_id) const override; | 92 int* sandbox_profile_resource_id) const override; |
95 #endif | 93 #endif |
96 | 94 |
97 void AddSecureSchemesAndOrigins(std::set<std::string>* schemes, | |
98 std::set<GURL>* origins) override; | |
99 | |
100 void AddServiceWorkerSchemes(std::set<std::string>* schemes) override; | |
101 bool AllowScriptExtensionForServiceWorker(const GURL& script_url) override; | 95 bool AllowScriptExtensionForServiceWorker(const GURL& script_url) override; |
102 | 96 |
103 bool IsSupplementarySiteIsolationModeEnabled() override; | 97 bool IsSupplementarySiteIsolationModeEnabled() override; |
104 | 98 |
105 content::OriginTrialPolicy* GetOriginTrialPolicy() override; | 99 content::OriginTrialPolicy* GetOriginTrialPolicy() override; |
106 | 100 |
107 #if defined(OS_ANDROID) | 101 #if defined(OS_ANDROID) |
108 media::MediaClientAndroid* GetMediaClientAndroid() override; | 102 media::MediaClientAndroid* GetMediaClientAndroid() override; |
109 #endif // OS_ANDROID | 103 #endif // OS_ANDROID |
110 | 104 |
111 private: | 105 private: |
112 std::unique_ptr<ChromeOriginTrialPolicy> origin_trial_policy_; | 106 std::unique_ptr<ChromeOriginTrialPolicy> origin_trial_policy_; |
113 }; | 107 }; |
114 | 108 |
115 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 109 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |