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_PLATFORM_SUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 virtual WebKit::WebString signedPublicKeyAndChallengeString( | 61 virtual WebKit::WebString signedPublicKeyAndChallengeString( |
62 unsigned key_size_index, const WebKit::WebString& challenge, | 62 unsigned key_size_index, const WebKit::WebString& challenge, |
63 const WebKit::WebURL& url); | 63 const WebKit::WebURL& url); |
64 virtual size_t memoryUsageMB(); | 64 virtual size_t memoryUsageMB(); |
65 virtual size_t actualMemoryUsageMB(); | 65 virtual size_t actualMemoryUsageMB(); |
66 #if defined(OS_ANDROID) // Other OSes just use the default values. | 66 #if defined(OS_ANDROID) // Other OSes just use the default values. |
67 virtual size_t lowMemoryUsageMB() OVERRIDE; | 67 virtual size_t lowMemoryUsageMB() OVERRIDE; |
68 virtual size_t highMemoryUsageMB() OVERRIDE; | 68 virtual size_t highMemoryUsageMB() OVERRIDE; |
69 virtual size_t highUsageDeltaMB() OVERRIDE; | 69 virtual size_t highUsageDeltaMB() OVERRIDE; |
70 #endif | 70 #endif |
| 71 virtual bool processMemorySizesInBytes(size_t* private_bytes, |
| 72 size_t* shared_bytes); |
71 virtual WebKit::WebURLLoader* createURLLoader(); | 73 virtual WebKit::WebURLLoader* createURLLoader(); |
72 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); | 74 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); |
73 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); | 75 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); |
74 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); | 76 virtual void getPluginList(bool refresh, WebKit::WebPluginListBuilder*); |
75 virtual void decrementStatsCounter(const char* name); | 77 virtual void decrementStatsCounter(const char* name); |
76 virtual void incrementStatsCounter(const char* name); | 78 virtual void incrementStatsCounter(const char* name); |
77 virtual void histogramCustomCounts( | 79 virtual void histogramCustomCounts( |
78 const char* name, int sample, int min, int max, int bucket_count); | 80 const char* name, int sample, int min, int max, int bucket_count); |
79 virtual void histogramEnumeration( | 81 virtual void histogramEnumeration( |
80 const char* name, int sample, int boundary_value); | 82 const char* name, int sample, int boundary_value); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 void (*shared_timer_func_)(); | 164 void (*shared_timer_func_)(); |
163 double shared_timer_fire_time_; | 165 double shared_timer_fire_time_; |
164 int shared_timer_suspended_; // counter | 166 int shared_timer_suspended_; // counter |
165 WebThemeEngineImpl theme_engine_; | 167 WebThemeEngineImpl theme_engine_; |
166 base::ThreadLocalStorage::Slot current_thread_slot_; | 168 base::ThreadLocalStorage::Slot current_thread_slot_; |
167 }; | 169 }; |
168 | 170 |
169 } // namespace webkit_glue | 171 } // namespace webkit_glue |
170 | 172 |
171 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 173 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
OLD | NEW |