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

Side by Side Diff: webkit/api/public/WebKitClient.h

Issue 332010: Expose a method to access amount of memory used by the current process. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/api/src/ChromiumBridge.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Keygen -------------------------------------------------------------- 152 // Keygen --------------------------------------------------------------
153 153
154 // Handle the <keygen> tag for generating client certificates 154 // Handle the <keygen> tag for generating client certificates
155 // Returns a base64 encoded signed copy of a public key from a newly 155 // Returns a base64 encoded signed copy of a public key from a newly
156 // generated key pair and the supplied challenge string. keySizeindex 156 // generated key pair and the supplied challenge string. keySizeindex
157 // specifies the strength of the key. 157 // specifies the strength of the key.
158 virtual WebString signedPublicKeyAndChallengeString(unsigned keySizeIndex, 158 virtual WebString signedPublicKeyAndChallengeString(unsigned keySizeIndex,
159 const WebKit::WebString& challenge, 159 const WebKit::WebString& challenge,
160 const WebKit::WebURL& url) = 0; 160 const WebKit::WebURL& url) = 0;
161 161
162
163 // Memory --------------------------------------------------------------
164
165 // Returns the current space allocated for the pagefile, in MB.
166 // That is committed size for Windows and virtual memory size for POSIX
167 virtual int memoryUsageMB() = 0;
168
169
162 // Message Ports ------------------------------------------------------- 170 // Message Ports -------------------------------------------------------
163 171
164 // Creates a Message Port Channel. This can be called on any thread. 172 // Creates a Message Port Channel. This can be called on any thread.
165 // The returned object should only be used on the thread it was created on. 173 // The returned object should only be used on the thread it was created on.
166 virtual WebMessagePortChannel* createMessagePortChannel() = 0; 174 virtual WebMessagePortChannel* createMessagePortChannel() = 0;
167 175
168 176
169 // Network ------------------------------------------------------------- 177 // Network -------------------------------------------------------------
170 178
171 virtual void setCookies( 179 virtual void setCookies(
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Callable from a background WebKit thread. 255 // Callable from a background WebKit thread.
248 virtual void callOnMainThread(void (*func)()) = 0; 256 virtual void callOnMainThread(void (*func)()) = 0;
249 257
250 protected: 258 protected:
251 ~WebKitClient() { } 259 ~WebKitClient() { }
252 }; 260 };
253 261
254 } // namespace WebKit 262 } // namespace WebKit
255 263
256 #endif 264 #endif
OLDNEW
« no previous file with comments | « no previous file | webkit/api/src/ChromiumBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698