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

Unified Diff: base/message_loop.h

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge in MessageLoop conflict from upstream. Created 8 years, 6 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 | base/message_loop.cc » ('j') | chrome/browser/custom_handlers/protocol_handler_registry.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
diff --git a/base/message_loop.h b/base/message_loop.h
index 227bfe3d8a1cb3b06d55bb05f13fed12825659c1..5a7f7e02f1619c10dc3c9938fe85a8a918ece60c 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -259,6 +259,10 @@ class BASE_EXPORT MessageLoop : public base::MessagePump::Delegate {
// arbitrary MessageLoop to QuitWhenIdle.
static base::Closure QuitWhenIdleClosure();
+ // Returns true if this loop is |type|. This allows subclasses (especially
+ // those in tests) to specialize how they are identified.
+ virtual bool IsType(Type type) const;
+
// Returns the type passed to the constructor.
Type type() const { return type_; }
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | chrome/browser/custom_handlers/protocol_handler_registry.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698