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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/containers/scoped_ptr_hash_map.h" | 9 #include "base/containers/scoped_ptr_hash_map.h" |
10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 unsigned key_size_index, | 70 unsigned key_size_index, |
71 const blink::WebString& challenge, | 71 const blink::WebString& challenge, |
72 const blink::WebURL& url) override; | 72 const blink::WebURL& url) override; |
73 size_t memoryUsageMB() override; | 73 size_t memoryUsageMB() override; |
74 size_t actualMemoryUsageMB() override; | 74 size_t actualMemoryUsageMB() override; |
75 size_t physicalMemoryMB() override; | 75 size_t physicalMemoryMB() override; |
76 size_t virtualMemoryLimitMB() override; | 76 size_t virtualMemoryLimitMB() override; |
77 bool isLowEndDeviceMode() override; | 77 bool isLowEndDeviceMode() override; |
78 size_t numberOfProcessors() override; | 78 size_t numberOfProcessors() override; |
79 | 79 |
80 bool processMemorySizesInBytes(size_t* private_bytes, | |
81 size_t* shared_bytes) override; | |
82 bool memoryAllocatorWasteInBytes(size_t* size) override; | |
83 blink::WebDiscardableMemory* allocateAndLockDiscardableMemory( | 80 blink::WebDiscardableMemory* allocateAndLockDiscardableMemory( |
84 size_t bytes) override; | 81 size_t bytes) override; |
85 size_t maxDecodedImageBytes() override; | 82 size_t maxDecodedImageBytes() override; |
86 uint32_t getUniqueIdForProcess() override; | 83 uint32_t getUniqueIdForProcess() override; |
87 blink::WebURLLoader* createURLLoader() override; | 84 blink::WebURLLoader* createURLLoader() override; |
88 blink::WebSocketHandle* createWebSocketHandle() override; | 85 blink::WebSocketHandle* createWebSocketHandle() override; |
89 blink::WebString userAgent() override; | 86 blink::WebString userAgent() override; |
90 blink::WebData parseDataURL(const blink::WebURL& url, | 87 blink::WebData parseDataURL(const blink::WebURL& url, |
91 blink::WebString& mimetype, | 88 blink::WebString& mimetype, |
92 blink::WebString& charset) override; | 89 blink::WebString& charset) override; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 206 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
210 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 207 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
211 scoped_refptr<PushDispatcher> push_dispatcher_; | 208 scoped_refptr<PushDispatcher> push_dispatcher_; |
212 scoped_ptr<PermissionDispatcher> permission_client_; | 209 scoped_ptr<PermissionDispatcher> permission_client_; |
213 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; | 210 scoped_ptr<BackgroundSyncProvider> main_thread_sync_provider_; |
214 }; | 211 }; |
215 | 212 |
216 } // namespace content | 213 } // namespace content |
217 | 214 |
218 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 215 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |