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

Side by Side Diff: content/child/blink_platform_impl.h

Issue 227113011: Expose the virtual memory limit to blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 8 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 | « base/sys_info_win.cc ('k') | content/child/blink_platform_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_CHILD_BLINK_PLATFORM_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const blink::WebString& vfs_file_name); 52 const blink::WebString& vfs_file_name);
53 virtual long long databaseGetFileSize(const blink::WebString& vfs_file_name); 53 virtual long long databaseGetFileSize(const blink::WebString& vfs_file_name);
54 virtual long long databaseGetSpaceAvailableForOrigin( 54 virtual long long databaseGetSpaceAvailableForOrigin(
55 const blink::WebString& origin_identifier); 55 const blink::WebString& origin_identifier);
56 virtual blink::WebString signedPublicKeyAndChallengeString( 56 virtual blink::WebString signedPublicKeyAndChallengeString(
57 unsigned key_size_index, const blink::WebString& challenge, 57 unsigned key_size_index, const blink::WebString& challenge,
58 const blink::WebURL& url); 58 const blink::WebURL& url);
59 virtual size_t memoryUsageMB(); 59 virtual size_t memoryUsageMB();
60 virtual size_t actualMemoryUsageMB(); 60 virtual size_t actualMemoryUsageMB();
61 virtual size_t physicalMemoryMB(); 61 virtual size_t physicalMemoryMB();
62 virtual size_t virtualMemoryLimitMB();
62 virtual size_t numberOfProcessors(); 63 virtual size_t numberOfProcessors();
63 64
64 virtual void startHeapProfiling(const blink::WebString& prefix); 65 virtual void startHeapProfiling(const blink::WebString& prefix);
65 virtual void stopHeapProfiling() OVERRIDE; 66 virtual void stopHeapProfiling() OVERRIDE;
66 virtual void dumpHeapProfiling(const blink::WebString& reason); 67 virtual void dumpHeapProfiling(const blink::WebString& reason);
67 virtual blink::WebString getHeapProfile() OVERRIDE; 68 virtual blink::WebString getHeapProfile() OVERRIDE;
68 69
69 virtual bool processMemorySizesInBytes(size_t* private_bytes, 70 virtual bool processMemorySizesInBytes(size_t* private_bytes,
70 size_t* shared_bytes); 71 size_t* shared_bytes);
71 virtual bool memoryAllocatorWasteInBytes(size_t* size); 72 virtual bool memoryAllocatorWasteInBytes(size_t* size);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 bool shared_timer_fire_time_was_set_while_suspended_; 163 bool shared_timer_fire_time_was_set_while_suspended_;
163 int shared_timer_suspended_; // counter 164 int shared_timer_suspended_; // counter
164 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_; 165 scoped_ptr<FlingCurveConfiguration> fling_curve_configuration_;
165 base::ThreadLocalStorage::Slot current_thread_slot_; 166 base::ThreadLocalStorage::Slot current_thread_slot_;
166 scoped_ptr<WebCryptoImpl> web_crypto_; 167 scoped_ptr<WebCryptoImpl> web_crypto_;
167 }; 168 };
168 169
169 } // namespace content 170 } // namespace content
170 171
171 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 172 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « base/sys_info_win.cc ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698