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_GLUE_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 std::string GetInspectorProtocolVersion(); | 107 std::string GetInspectorProtocolVersion(); |
108 | 108 |
109 // Tells caller whether the given protocol version is supported by the. | 109 // Tells caller whether the given protocol version is supported by the. |
110 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( | 110 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( |
111 const std::string& version); | 111 const std::string& version); |
112 | 112 |
113 // Configures the URLRequest according to the referrer policy. | 113 // Configures the URLRequest according to the referrer policy. |
114 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( | 114 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( |
115 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); | 115 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); |
116 | 116 |
| 117 // Returns an estimate of the memory usage of the renderer process. Different |
| 118 // platforms implement this function differently, and count in different |
| 119 // allocations. Results are not comparable across platforms. The estimate is |
| 120 // computed inside the sandbox and thus its not always accurate. |
| 121 WEBKIT_GLUE_EXPORT size_t MemoryUsageKB(); |
| 122 |
117 } // namespace webkit_glue | 123 } // namespace webkit_glue |
118 | 124 |
119 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 125 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |