Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: webkit/child/webkitplatformsupport_impl.h

Issue 23600067: Limit image decoded size on low end Android devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change according to WebKit API change Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/child/webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 maxDecodedImageBytes() 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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/child/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698