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

Unified Diff: mojo/public/cpp/environment/environment.h

Issue 218583009: Adds a way to associate key/value pairs with the environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 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
« mojo/common/handle_watcher.cc ('K') | « mojo/mojo_examples.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/environment/environment.h
diff --git a/mojo/public/cpp/environment/environment.h b/mojo/public/cpp/environment/environment.h
index f75e2f77851d8da0a40a52f6e3c305c57e2b7fd9..b391cd2561b16b218881d9a2f5e5751789842cc9 100644
--- a/mojo/public/cpp/environment/environment.h
+++ b/mojo/public/cpp/environment/environment.h
@@ -12,10 +12,19 @@ namespace mojo {
// This class must be instantiated before using any Mojo APIs.
class Environment {
public:
+ class Impl {
darin (slow to review) 2014/03/31 23:21:55 another way to do this is to just forward declare
darin (slow to review) 2014/03/31 23:24:47 I might use a term other than Impl here since it m
sky 2014/03/31 23:54:40 Done.
sky 2014/03/31 23:54:40 Done.
+ public:
+ Impl() {}
+ virtual ~Impl() {}
+ };
+
Environment();
~Environment();
private:
+ // Environment implementation can use this to store state.
+ Impl* impl_;
darin (slow to review) 2014/03/31 23:21:55 you should probably at least set this to null in t
sky 2014/03/31 23:54:40 Done.
+
MOJO_DISALLOW_COPY_AND_ASSIGN(Environment);
};
« mojo/common/handle_watcher.cc ('K') | « mojo/mojo_examples.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698