| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 class BLINK_PLATFORM_EXPORT Platform { | 128 class BLINK_PLATFORM_EXPORT Platform { |
| 129 public: | 129 public: |
| 130 // HTML5 Database ------------------------------------------------------ | 130 // HTML5 Database ------------------------------------------------------ |
| 131 | 131 |
| 132 #ifdef WIN32 | 132 #ifdef WIN32 |
| 133 typedef HANDLE FileHandle; | 133 typedef HANDLE FileHandle; |
| 134 #else | 134 #else |
| 135 typedef int FileHandle; | 135 typedef int FileHandle; |
| 136 #endif | 136 #endif |
| 137 | 137 |
| 138 // Initialize platform and wtf. If you need to initialize the entire Blink, |
| 139 // you should use blink::initialize. |
| 138 static void initialize(Platform*); | 140 static void initialize(Platform*); |
| 139 static void shutdown(); | 141 static void shutdown(); |
| 140 static Platform* current(); | 142 static Platform* current(); |
| 141 | 143 |
| 142 // Used to switch the current platform only for testing. | 144 // Used to switch the current platform only for testing. |
| 143 static void setCurrentPlatformForTesting(Platform*); | 145 static void setCurrentPlatformForTesting(Platform*); |
| 144 | 146 |
| 145 // May return null. | 147 // May return null. |
| 146 virtual WebCookieJar* cookieJar() { return nullptr; } | 148 virtual WebCookieJar* cookieJar() { return nullptr; } |
| 147 | 149 |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 protected: | 622 protected: |
| 621 Platform(); | 623 Platform(); |
| 622 virtual ~Platform() { } | 624 virtual ~Platform() { } |
| 623 | 625 |
| 624 WebThread* m_mainThread; | 626 WebThread* m_mainThread; |
| 625 }; | 627 }; |
| 626 | 628 |
| 627 } // namespace blink | 629 } // namespace blink |
| 628 | 630 |
| 629 #endif | 631 #endif |
| OLD | NEW |