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

Unified Diff: cc/context_provider.h

Issue 12212100: Provide shared context to Platform API in renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseforreals Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/test/fake_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/context_provider.h
diff --git a/cc/context_provider.h b/cc/context_provider.h
index ffb4822fe5d1c73842bc2d80b83f55251f1234f2..786d1470f1e35e65924b14a48a50fdf36a24bbba 100644
--- a/cc/context_provider.h
+++ b/cc/context_provider.h
@@ -32,6 +32,10 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> {
// one.
virtual void VerifyContexts() = 0;
+ // A method to be called from the main thread that should return true if
+ // the context inside the provider is no longer valid.
+ virtual bool DestroyedOnMainThread() = 0;
+
protected:
friend class base::RefCountedThreadSafe<ContextProvider>;
virtual ~ContextProvider() {}
« no previous file with comments | « no previous file | cc/test/fake_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698