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

Unified Diff: dbus/exported_object.h

Issue 7714030: Add mock classes for Bus, ObjectProxy, and ExportedObject. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang build Created 9 years, 4 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 | « dbus/dbus.gyp ('k') | dbus/mock_bus.h » ('j') | dbus/mock_bus.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/exported_object.h
diff --git a/dbus/exported_object.h b/dbus/exported_object.h
index 1351824c7fc9a5dfd9bd6203a3b27069a368561d..d9cda5763b755b8c7319a7900cb899891bde0c95 100644
--- a/dbus/exported_object.h
+++ b/dbus/exported_object.h
@@ -86,9 +86,12 @@ class ExportedObject : public base::RefCountedThreadSafe<ExportedObject> {
// BLOCKING CALL.
virtual void Unregister();
+ protected:
+ // This is protected, so we can define sub classes.
+ virtual ~ExportedObject();
+
private:
friend class base::RefCountedThreadSafe<ExportedObject>;
- virtual ~ExportedObject();
// Helper function for ExportMethod().
void ExportMethodInternal(const std::string& interface_name,
« no previous file with comments | « dbus/dbus.gyp ('k') | dbus/mock_bus.h » ('j') | dbus/mock_bus.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698