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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual size_t actualMemoryUsageMB(); | 51 virtual size_t actualMemoryUsageMB(); |
52 | 52 |
53 virtual void startHeapProfiling(const WebKit::WebString& prefix); | 53 virtual void startHeapProfiling(const WebKit::WebString& prefix); |
54 virtual void stopHeapProfiling() OVERRIDE; | 54 virtual void stopHeapProfiling() OVERRIDE; |
55 virtual void dumpHeapProfiling(const WebKit::WebString& reason); | 55 virtual void dumpHeapProfiling(const WebKit::WebString& reason); |
56 virtual WebKit::WebString getHeapProfile() OVERRIDE; | 56 virtual WebKit::WebString getHeapProfile() OVERRIDE; |
57 | 57 |
58 virtual bool processMemorySizesInBytes(size_t* private_bytes, | 58 virtual bool processMemorySizesInBytes(size_t* private_bytes, |
59 size_t* shared_bytes); | 59 size_t* shared_bytes); |
60 virtual bool memoryAllocatorWasteInBytes(size_t* size); | 60 virtual bool memoryAllocatorWasteInBytes(size_t* size); |
| 61 virtual size_t maxImageDecodedBytes() OVERRIDE; |
61 virtual WebKit::WebURLLoader* createURLLoader(); | 62 virtual WebKit::WebURLLoader* createURLLoader(); |
62 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); | 63 virtual WebKit::WebSocketStreamHandle* createSocketStreamHandle(); |
63 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); | 64 virtual WebKit::WebString userAgent(const WebKit::WebURL& url); |
64 virtual WebKit::WebData parseDataURL( | 65 virtual WebKit::WebData parseDataURL( |
65 const WebKit::WebURL& url, WebKit::WebString& mimetype, | 66 const WebKit::WebURL& url, WebKit::WebString& mimetype, |
66 WebKit::WebString& charset); | 67 WebKit::WebString& charset); |
67 virtual WebKit::WebURLError cancelledError(const WebKit::WebURL& url) const; | 68 virtual WebKit::WebURLError cancelledError(const WebKit::WebURL& url) const; |
68 virtual void decrementStatsCounter(const char* name); | 69 virtual void decrementStatsCounter(const char* name); |
69 virtual void incrementStatsCounter(const char* name); | 70 virtual void incrementStatsCounter(const char* name); |
70 virtual void histogramCustomCounts( | 71 virtual void histogramCustomCounts( |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; | 141 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; |
141 void (*shared_timer_func_)(); | 142 void (*shared_timer_func_)(); |
142 double shared_timer_fire_time_; | 143 double shared_timer_fire_time_; |
143 bool shared_timer_fire_time_was_set_while_suspended_; | 144 bool shared_timer_fire_time_was_set_while_suspended_; |
144 int shared_timer_suspended_; // counter | 145 int shared_timer_suspended_; // counter |
145 }; | 146 }; |
146 | 147 |
147 } // namespace webkit_glue | 148 } // namespace webkit_glue |
148 | 149 |
149 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ | 150 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |