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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_with_cache.h

Issue 11316307: Revert 170319 - Removed dead code from chrome/browser/extensions/api/declarative (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/declarative/rules_registry_with_cache.h
===================================================================
--- chrome/browser/extensions/api/declarative/rules_registry_with_cache.h (revision 170756)
+++ chrome/browser/extensions/api/declarative/rules_registry_with_cache.h (working copy)
@@ -36,6 +36,14 @@
explicit RulesRegistryWithCache(Delegate* delegate);
+ // Returns true if we are ready to process rules.
+ bool IsReady() {
+ return !delegate_.get() || delegate_->IsReady();
+ }
+
+ // Add a callback to call when we transition to Ready.
+ void AddReadyCallback(const base::Closure& callback);
+
// Called by our delegate when we are ready. This is called exactly once,
// if we have a delegate.
void OnReady();
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698