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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2455983004: NOT FOR SUBMISSION: local copy of leon.han's CL (Closed)
Patch Set: Rebase Created 4 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
« no previous file with comments | « third_party/WebKit/Source/platform/exported/Platform.cpp ('k') | no next file » | 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) 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 138 // Initialize platform and wtf. If you need to initialize the entire Blink,
139 // you should use blink::initialize. 139 // you should use blink::initialize.
140 static void initialize(Platform*); 140 static void initialize(Platform*);
141 static void shutdown(); 141 static void shutdown();
142 static Platform* current(); 142 static Platform* current();
143 // Used to get whether message loop is ready for current thread, to help
144 // blink::initialize() determining whether can initialize mojo stuff or not.
145 // TODO(leonhsl): http://crbug.com/660274 Remove this public API by ensuring
146 // a message loop before calling blink::initialize().
147 static bool isMessageLoopReady();
143 148
144 // Used to switch the current platform only for testing. 149 // Used to switch the current platform only for testing.
145 static void setCurrentPlatformForTesting(Platform*); 150 static void setCurrentPlatformForTesting(Platform*);
146 151
147 // May return null. 152 // May return null.
148 virtual WebCookieJar* cookieJar() { return nullptr; } 153 virtual WebCookieJar* cookieJar() { return nullptr; }
149 154
150 // Must return non-null. 155 // Must return non-null.
151 virtual WebClipboard* clipboard() { return nullptr; } 156 virtual WebClipboard* clipboard() { return nullptr; }
152 157
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 protected: 680 protected:
676 Platform(); 681 Platform();
677 virtual ~Platform() {} 682 virtual ~Platform() {}
678 683
679 WebThread* m_mainThread; 684 WebThread* m_mainThread;
680 }; 685 };
681 686
682 } // namespace blink 687 } // namespace blink
683 688
684 #endif 689 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/exported/Platform.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698