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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 void SetActiveURL(const GURL& url) override; | 70 void SetActiveURL(const GURL& url) override; |
71 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; | 71 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; |
72 void AddPepperPlugins( | 72 void AddPepperPlugins( |
73 std::vector<content::PepperPluginInfo>* plugins) override; | 73 std::vector<content::PepperPluginInfo>* plugins) override; |
74 void AddContentDecryptionModules( | 74 void AddContentDecryptionModules( |
75 std::vector<content::CdmInfo>* cdms) override; | 75 std::vector<content::CdmInfo>* cdms) override; |
76 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, | 76 void AddAdditionalSchemes(std::vector<url::SchemeWithType>* standard_schemes, |
77 std::vector<url::SchemeWithType>* referrer_schemes, | 77 std::vector<url::SchemeWithType>* referrer_schemes, |
78 std::vector<std::string>* saveable_shemes) override; | 78 std::vector<std::string>* saveable_shemes) override; |
79 bool CanSendWhileSwappedOut(const IPC::Message* message) override; | |
80 std::string GetProduct() const override; | 79 std::string GetProduct() const override; |
81 std::string GetUserAgent() const override; | 80 std::string GetUserAgent() const override; |
82 base::string16 GetLocalizedString(int message_id) const override; | 81 base::string16 GetLocalizedString(int message_id) const override; |
83 base::StringPiece GetDataResource( | 82 base::StringPiece GetDataResource( |
84 int resource_id, | 83 int resource_id, |
85 ui::ScaleFactor scale_factor) const override; | 84 ui::ScaleFactor scale_factor) const override; |
86 base::RefCountedMemory* GetDataResourceBytes( | 85 base::RefCountedMemory* GetDataResourceBytes( |
87 int resource_id) const override; | 86 int resource_id) const override; |
88 gfx::Image& GetNativeImageNamed(int resource_id) const override; | 87 gfx::Image& GetNativeImageNamed(int resource_id) const override; |
89 std::string GetProcessTypeNameInEnglish(int type) override; | 88 std::string GetProcessTypeNameInEnglish(int type) override; |
(...skipping 16 matching lines...) Expand all Loading... |
106 | 105 |
107 #if defined(OS_ANDROID) | 106 #if defined(OS_ANDROID) |
108 media::MediaClientAndroid* GetMediaClientAndroid() override; | 107 media::MediaClientAndroid* GetMediaClientAndroid() override; |
109 #endif // OS_ANDROID | 108 #endif // OS_ANDROID |
110 | 109 |
111 private: | 110 private: |
112 std::unique_ptr<ChromeOriginTrialPolicy> origin_trial_policy_; | 111 std::unique_ptr<ChromeOriginTrialPolicy> origin_trial_policy_; |
113 }; | 112 }; |
114 | 113 |
115 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 114 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |