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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 virtual size_t physicalMemoryMB(); | 74 virtual size_t physicalMemoryMB(); |
75 virtual size_t virtualMemoryLimitMB(); | 75 virtual size_t virtualMemoryLimitMB(); |
76 virtual size_t numberOfProcessors(); | 76 virtual size_t numberOfProcessors(); |
77 | 77 |
78 virtual bool processMemorySizesInBytes(size_t* private_bytes, | 78 virtual bool processMemorySizesInBytes(size_t* private_bytes, |
79 size_t* shared_bytes); | 79 size_t* shared_bytes); |
80 virtual bool memoryAllocatorWasteInBytes(size_t* size); | 80 virtual bool memoryAllocatorWasteInBytes(size_t* size); |
81 virtual blink::WebDiscardableMemory* allocateAndLockDiscardableMemory( | 81 virtual blink::WebDiscardableMemory* allocateAndLockDiscardableMemory( |
82 size_t bytes); | 82 size_t bytes); |
83 virtual size_t maxDecodedImageBytes(); | 83 virtual size_t maxDecodedImageBytes(); |
| 84 virtual uint32_t getUniqueIdForProcess(); |
84 virtual blink::WebURLLoader* createURLLoader(); | 85 virtual blink::WebURLLoader* createURLLoader(); |
85 virtual blink::WebSocketHandle* createWebSocketHandle(); | 86 virtual blink::WebSocketHandle* createWebSocketHandle(); |
86 virtual blink::WebString userAgent(); | 87 virtual blink::WebString userAgent(); |
87 virtual blink::WebData parseDataURL( | 88 virtual blink::WebData parseDataURL( |
88 const blink::WebURL& url, blink::WebString& mimetype, | 89 const blink::WebURL& url, blink::WebString& mimetype, |
89 blink::WebString& charset); | 90 blink::WebString& charset); |
90 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; | 91 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; |
91 virtual bool isReservedIPAddress(const blink::WebString& host) const; | 92 virtual bool isReservedIPAddress(const blink::WebString& host) const; |
92 virtual bool portAllowed(const blink::WebURL& url) const; | 93 virtual bool portAllowed(const blink::WebURL& url) const; |
93 virtual blink::WebThread* createThread(const char* name); | 94 virtual blink::WebThread* createThread(const char* name); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 197 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
197 scoped_refptr<NotificationDispatcher> notification_dispatcher_; | 198 scoped_refptr<NotificationDispatcher> notification_dispatcher_; |
198 scoped_refptr<PushDispatcher> push_dispatcher_; | 199 scoped_refptr<PushDispatcher> push_dispatcher_; |
199 scoped_ptr<PermissionDispatcher> permission_client_; | 200 scoped_ptr<PermissionDispatcher> permission_client_; |
200 scoped_ptr<BackgroundSyncProvider> sync_provider_; | 201 scoped_ptr<BackgroundSyncProvider> sync_provider_; |
201 }; | 202 }; |
202 | 203 |
203 } // namespace content | 204 } // namespace content |
204 | 205 |
205 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ | 206 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |