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 WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const blink::WebString& vfs_file_name); | 43 const blink::WebString& vfs_file_name); |
44 virtual long long databaseGetFileSize(const blink::WebString& vfs_file_name); | 44 virtual long long databaseGetFileSize(const blink::WebString& vfs_file_name); |
45 virtual long long databaseGetSpaceAvailableForOrigin( | 45 virtual long long databaseGetSpaceAvailableForOrigin( |
46 const blink::WebString& origin_identifier); | 46 const blink::WebString& origin_identifier); |
47 virtual blink::WebString signedPublicKeyAndChallengeString( | 47 virtual blink::WebString signedPublicKeyAndChallengeString( |
48 unsigned key_size_index, const blink::WebString& challenge, | 48 unsigned key_size_index, const blink::WebString& challenge, |
49 const blink::WebURL& url); | 49 const blink::WebURL& url); |
50 virtual size_t memoryUsageMB(); | 50 virtual size_t memoryUsageMB(); |
51 virtual size_t actualMemoryUsageMB(); | 51 virtual size_t actualMemoryUsageMB(); |
52 virtual size_t physicalMemoryMB(); | 52 virtual size_t physicalMemoryMB(); |
| 53 virtual size_t numberOfProcessors(); |
53 | 54 |
54 virtual void startHeapProfiling(const blink::WebString& prefix); | 55 virtual void startHeapProfiling(const blink::WebString& prefix); |
55 virtual void stopHeapProfiling() OVERRIDE; | 56 virtual void stopHeapProfiling() OVERRIDE; |
56 virtual void dumpHeapProfiling(const blink::WebString& reason); | 57 virtual void dumpHeapProfiling(const blink::WebString& reason); |
57 virtual blink::WebString getHeapProfile() OVERRIDE; | 58 virtual blink::WebString getHeapProfile() OVERRIDE; |
58 | 59 |
59 virtual bool processMemorySizesInBytes(size_t* private_bytes, | 60 virtual bool processMemorySizesInBytes(size_t* private_bytes, |
60 size_t* shared_bytes); | 61 size_t* shared_bytes); |
61 virtual bool memoryAllocatorWasteInBytes(size_t* size); | 62 virtual bool memoryAllocatorWasteInBytes(size_t* size); |
62 virtual size_t maxDecodedImageBytes() OVERRIDE; | 63 virtual size_t maxDecodedImageBytes() OVERRIDE; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; | 144 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; |
144 void (*shared_timer_func_)(); | 145 void (*shared_timer_func_)(); |
145 double shared_timer_fire_time_; | 146 double shared_timer_fire_time_; |
146 bool shared_timer_fire_time_was_set_while_suspended_; | 147 bool shared_timer_fire_time_was_set_while_suspended_; |
147 int shared_timer_suspended_; // counter | 148 int shared_timer_suspended_; // counter |
148 }; | 149 }; |
149 | 150 |
150 } // namespace webkit_glue | 151 } // namespace webkit_glue |
151 | 152 |
152 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ | 153 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |