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

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

Issue 50903003: Add Platform::physicalMemoryInBytes to WebKitPlatformSupportImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@physicalmemory_renderer
Patch Set: return type to size_t Created 7 years, 1 month 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
« 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual long databaseGetFileAttributes( 42 virtual long databaseGetFileAttributes(
43 const WebKit::WebString& vfs_file_name); 43 const WebKit::WebString& vfs_file_name);
44 virtual long long databaseGetFileSize(const WebKit::WebString& vfs_file_name); 44 virtual long long databaseGetFileSize(const WebKit::WebString& vfs_file_name);
45 virtual long long databaseGetSpaceAvailableForOrigin( 45 virtual long long databaseGetSpaceAvailableForOrigin(
46 const WebKit::WebString& origin_identifier); 46 const WebKit::WebString& origin_identifier);
47 virtual WebKit::WebString signedPublicKeyAndChallengeString( 47 virtual WebKit::WebString signedPublicKeyAndChallengeString(
48 unsigned key_size_index, const WebKit::WebString& challenge, 48 unsigned key_size_index, const WebKit::WebString& challenge,
49 const WebKit::WebURL& url); 49 const WebKit::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 53
53 virtual void startHeapProfiling(const WebKit::WebString& prefix); 54 virtual void startHeapProfiling(const WebKit::WebString& prefix);
54 virtual void stopHeapProfiling() OVERRIDE; 55 virtual void stopHeapProfiling() OVERRIDE;
55 virtual void dumpHeapProfiling(const WebKit::WebString& reason); 56 virtual void dumpHeapProfiling(const WebKit::WebString& reason);
56 virtual WebKit::WebString getHeapProfile() OVERRIDE; 57 virtual WebKit::WebString getHeapProfile() OVERRIDE;
57 58
58 virtual bool processMemorySizesInBytes(size_t* private_bytes, 59 virtual bool processMemorySizesInBytes(size_t* private_bytes,
59 size_t* shared_bytes); 60 size_t* shared_bytes);
60 virtual bool memoryAllocatorWasteInBytes(size_t* size); 61 virtual bool memoryAllocatorWasteInBytes(size_t* size);
61 virtual size_t maxDecodedImageBytes() OVERRIDE; 62 virtual size_t maxDecodedImageBytes() OVERRIDE;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; 143 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_;
143 void (*shared_timer_func_)(); 144 void (*shared_timer_func_)();
144 double shared_timer_fire_time_; 145 double shared_timer_fire_time_;
145 bool shared_timer_fire_time_was_set_while_suspended_; 146 bool shared_timer_fire_time_was_set_while_suspended_;
146 int shared_timer_suspended_; // counter 147 int shared_timer_suspended_; // counter
147 }; 148 };
148 149
149 } // namespace webkit_glue 150 } // namespace webkit_glue
150 151
151 #endif // WEBKIT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ 152 #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