| OLD | NEW |
| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 Platform::current()->histogramEnumeration(name, sample, boundaryValue); | 149 Platform::current()->histogramEnumeration(name, sample, boundaryValue); |
| 150 } | 150 } |
| 151 | 151 |
| 152 static void cryptographicallyRandomValues(unsigned char* buffer, size_t length) | 152 static void cryptographicallyRandomValues(unsigned char* buffer, size_t length) |
| 153 { | 153 { |
| 154 Platform::current()->cryptographicallyRandomValues(buffer, length); | 154 Platform::current()->cryptographicallyRandomValues(buffer, length); |
| 155 } | 155 } |
| 156 | 156 |
| 157 static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* con
text) | 157 static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* con
text) |
| 158 { | 158 { |
| 159 Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, new Mai
nThreadTaskRunner(function, context)); | 159 Platform::current()->mainThread()->taskRunner()->postTask(BLINK_FROM_HERE, n
ew MainThreadTaskRunner(function, context)); |
| 160 } | 160 } |
| 161 | 161 |
| 162 static void adjustAmountOfExternalAllocatedMemory(int size) | 162 static void adjustAmountOfExternalAllocatedMemory(int size) |
| 163 { | 163 { |
| 164 v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size); | 164 v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(size); |
| 165 } | 165 } |
| 166 | 166 |
| 167 void initializeWithoutV8(Platform* platform) | 167 void initializeWithoutV8(Platform* platform) |
| 168 { | 168 { |
| 169 ASSERT(!s_webKitInitialized); | 169 ASSERT(!s_webKitInitialized); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 ASSERT(!reloadPages); | 289 ASSERT(!reloadPages); |
| 290 Page::refreshPlugins(); | 290 Page::refreshPlugins(); |
| 291 } | 291 } |
| 292 | 292 |
| 293 void decommitFreeableMemory() | 293 void decommitFreeableMemory() |
| 294 { | 294 { |
| 295 WTF::Partitions::decommitFreeableMemory(); | 295 WTF::Partitions::decommitFreeableMemory(); |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace blink | 298 } // namespace blink |
| OLD | NEW |