Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebSuspendableTask.h
blob5d3fb042929d6955fd33b6d93932707fe2b2757a
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebSuspendableTask_h
6 #define WebSuspendableTask_h
8 namespace blink {
10 class WebSuspendableTask {
11 public:
12 virtual void run() = 0;
13 virtual void contextDestroyed() { }
14 virtual ~WebSuspendableTask() { }
17 } // namespace blink
19 #endif // WebSuspendableTask_h