OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 int DatabaseDeleteFile(const blink::WebString& vfs_file_name, | 67 int DatabaseDeleteFile(const blink::WebString& vfs_file_name, |
68 bool sync_dir) override; | 68 bool sync_dir) override; |
69 long DatabaseGetFileAttributes( | 69 long DatabaseGetFileAttributes( |
70 const blink::WebString& vfs_file_name) override; | 70 const blink::WebString& vfs_file_name) override; |
71 long long DatabaseGetFileSize(const blink::WebString& vfs_file_name) override; | 71 long long DatabaseGetFileSize(const blink::WebString& vfs_file_name) override; |
72 long long DatabaseGetSpaceAvailableForOrigin( | 72 long long DatabaseGetSpaceAvailableForOrigin( |
73 const blink::WebSecurityOrigin& origin) override; | 73 const blink::WebSecurityOrigin& origin) override; |
74 bool DatabaseSetFileSize(const blink::WebString& vfs_file_name, | 74 bool DatabaseSetFileSize(const blink::WebString& vfs_file_name, |
75 long long size) override; | 75 long long size) override; |
76 size_t ActualMemoryUsageMB() override; | 76 size_t ActualMemoryUsageMB() override; |
| 77 size_t AmountOfPhysicalMemoryMB() override; |
| 78 // For testing. |
| 79 void SetDevicePhysicalMemoryMBForTesting(int64_t physical_memory_mb) override; |
77 size_t NumberOfProcessors() override; | 80 size_t NumberOfProcessors() override; |
78 | 81 |
79 size_t MaxDecodedImageBytes() override; | 82 size_t MaxDecodedImageBytes() override; |
80 uint32_t GetUniqueIdForProcess() override; | 83 uint32_t GetUniqueIdForProcess() override; |
81 blink::WebString UserAgent() override; | 84 blink::WebString UserAgent() override; |
82 blink::WebURLError CancelledError(const blink::WebURL& url) const override; | 85 blink::WebURLError CancelledError(const blink::WebURL& url) const override; |
83 std::unique_ptr<blink::WebThread> CreateThread(const char* name) override; | 86 std::unique_ptr<blink::WebThread> CreateThread(const char* name) override; |
84 blink::WebThread* CurrentThread() override; | 87 blink::WebThread* CurrentThread() override; |
85 void RecordAction(const blink::UserMetricsAction&) override; | 88 void RecordAction(const blink::UserMetricsAction&) override; |
86 | 89 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 WebThemeEngineImpl native_theme_engine_; | 145 WebThemeEngineImpl native_theme_engine_; |
143 WebFallbackThemeEngineImpl fallback_theme_engine_; | 146 WebFallbackThemeEngineImpl fallback_theme_engine_; |
144 base::ThreadLocalStorage::Slot current_thread_slot_; | 147 base::ThreadLocalStorage::Slot current_thread_slot_; |
145 webcrypto::WebCryptoImpl web_crypto_; | 148 webcrypto::WebCryptoImpl web_crypto_; |
146 media::WebMediaCapabilitiesClientImpl media_capabilities_client_; | 149 media::WebMediaCapabilitiesClientImpl media_capabilities_client_; |
147 | 150 |
148 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 151 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
149 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 152 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
150 | 153 |
151 blink::scheduler::WebThreadBase* compositor_thread_; | 154 blink::scheduler::WebThreadBase* compositor_thread_; |
| 155 size_t physical_memory_mb_; |
152 }; | 156 }; |
153 | 157 |
154 } // namespace content | 158 } // namespace content |
155 | 159 |
156 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 160 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |