Chromium Code Reviews| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 typedef HANDLE FileHandle; | 134 typedef HANDLE FileHandle; |
| 135 #else | 135 #else |
| 136 typedef int FileHandle; | 136 typedef int FileHandle; |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 // Initialize platform and wtf. If you need to initialize the entire Blink, | 139 // Initialize platform and wtf. If you need to initialize the entire Blink, |
| 140 // you should use blink::initialize. | 140 // you should use blink::initialize. |
| 141 static void initialize(Platform*); | 141 static void initialize(Platform*); |
| 142 static void shutdown(); | 142 static void shutdown(); |
| 143 static Platform* current(); | 143 static Platform* current(); |
| 144 // Used to get whether message loop is ready for current thread, to help | |
| 145 // blink::initialize() determining whether can initialize mojo stuff or not. | |
| 146 // TODO(leonhsl): http://crbug.com/660274 Remove this public API by ensuring | |
| 147 // a message loop before calling blink::initialize(). | |
| 148 static bool isMessageLoopReady(); | |
|
kinuko
2016/11/08 03:22:56
(Putting aside the need of this method that seems
leonhsl(Using Gerrit)
2016/11/08 08:20:39
Yes the only user is Source/modules/ModulesInitial
| |
| 144 | 149 |
| 145 // Used to switch the current platform only for testing. | 150 // Used to switch the current platform only for testing. |
| 146 static void setCurrentPlatformForTesting(Platform*); | 151 static void setCurrentPlatformForTesting(Platform*); |
| 147 | 152 |
| 148 // May return null. | 153 // May return null. |
| 149 virtual WebCookieJar* cookieJar() { return nullptr; } | 154 virtual WebCookieJar* cookieJar() { return nullptr; } |
| 150 | 155 |
| 151 // Must return non-null. | 156 // Must return non-null. |
| 152 virtual WebClipboard* clipboard() { return nullptr; } | 157 virtual WebClipboard* clipboard() { return nullptr; } |
| 153 | 158 |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 679 protected: | 684 protected: |
| 680 Platform(); | 685 Platform(); |
| 681 virtual ~Platform() {} | 686 virtual ~Platform() {} |
| 682 | 687 |
| 683 WebThread* m_mainThread; | 688 WebThread* m_mainThread; |
| 684 }; | 689 }; |
| 685 | 690 |
| 686 } // namespace blink | 691 } // namespace blink |
| 687 | 692 |
| 688 #endif | 693 #endif |
| OLD | NEW |