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

Unified Diff: android_webview/browser/aw_quota_manager_bridge.h

Issue 26477002: Android WebView: post QuotaManager calls to UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missing origin in url construction Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_quota_manager_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_quota_manager_bridge.h
diff --git a/android_webview/browser/aw_quota_manager_bridge.h b/android_webview/browser/aw_quota_manager_bridge.h
index 5480cf824ac7364c9668a7dedf874ac172ac18bc..bc4da37825c4b532aefb79a131410fb00766e6a0 100644
--- a/android_webview/browser/aw_quota_manager_bridge.h
+++ b/android_webview/browser/aw_quota_manager_bridge.h
@@ -5,11 +5,16 @@
#ifndef ANDROID_WEBVIEW_BROWSER_AW_QUOTA_MANAGER_BRIDGE_H_
#define ANDROID_WEBVIEW_BROWSER_AW_QUOTA_MANAGER_BRIDGE_H_
+#include "base/memory/ref_counted.h"
+
namespace android_webview {
-// Empty base class so this can be owned and destroyed by AwBrowserContext.
-class AwQuotaManagerBridge {
- public:
+// Empty base class so this can be refcounted by AwBrowserContext.
+class AwQuotaManagerBridge :
+ public base::RefCountedThreadSafe<AwQuotaManagerBridge> {
+ protected:
+ friend class base::RefCountedThreadSafe<AwQuotaManagerBridge>;
+ AwQuotaManagerBridge();
virtual ~AwQuotaManagerBridge();
};
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/aw_quota_manager_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698