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

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

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: content_unittests does not need to init mojo edk any more by itself Created 4 years, 2 months 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
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 static bool isMessageLoopReady();
haraken 2016/10/18 19:39:11 I want to avoid introducing this if possible...
leonhsl(Using Gerrit) 2016/10/19 08:47:23 I was assuming that we should put wrapper of base:
144 147
145 // Used to switch the current platform only for testing. 148 // Used to switch the current platform only for testing.
146 static void setCurrentPlatformForTesting(Platform*); 149 static void setCurrentPlatformForTesting(Platform*);
147 150
148 // May return null. 151 // May return null.
149 virtual WebCookieJar* cookieJar() { return nullptr; } 152 virtual WebCookieJar* cookieJar() { return nullptr; }
150 153
151 // Must return non-null. 154 // Must return non-null.
152 virtual WebClipboard* clipboard() { return nullptr; } 155 virtual WebClipboard* clipboard() { return nullptr; }
153 156
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 protected: 690 protected:
688 Platform(); 691 Platform();
689 virtual ~Platform() {} 692 virtual ~Platform() {}
690 693
691 WebThread* m_mainThread; 694 WebThread* m_mainThread;
692 }; 695 };
693 696
694 } // namespace blink 697 } // namespace blink
695 698
696 #endif 699 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698