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

Unified Diff: content/browser/nav_controller/nav_controller_context.h

Issue 23615009: Stub out initial NavigationController browser implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix id comments one more time Created 7 years, 3 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 | « content/browser/nav_controller/OWNERS ('k') | content/browser/nav_controller/nav_controller_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/nav_controller/nav_controller_context.h
diff --git a/content/browser/nav_controller/nav_controller_context.h b/content/browser/nav_controller/nav_controller_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..16ba2998b8e9885f46cd659bb047701618dc728c
--- /dev/null
+++ b/content/browser/nav_controller/nav_controller_context.h
@@ -0,0 +1,47 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_CONTEXT_H_
+#define CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_CONTEXT_H_
+
+#include "base/files/file_path.h"
jam 2013/09/13 22:44:41 nit: no need
+#include "base/memory/ref_counted.h"
+
+// TODO(alecflett): Promote to an interface and put in content/public
+// when this needs to be accessed from chrome/
jam 2013/09/13 22:44:41 nit: remove this for now. if you need that in the
+
+namespace base {
+class FilePath;
+}
+
+namespace quota {
+class QuotaManagerProxy;
+}
+
+namespace content {
+
+// This class manages metadata associated with all navigation
+// controllers, including:
+// - persistent storage of pattern -> controller scripts
+// - initialization and initial installation of controllers
+// - dispatching of non-fetch events to controllers
+class NavControllerContext
+ : public base::RefCountedThreadSafe<NavControllerContext> {
jam 2013/09/13 22:44:41 why is this refcounted?
+ public:
+ // This is owned by the StoragePartition, which will supply it with
+ // the local path on disk.
+ NavControllerContext(const base::FilePath& path,
+ quota::QuotaManagerProxy* quota_manager_proxy);
+
+ private:
+ friend class base::RefCountedThreadSafe<NavControllerContext>;
+ ~NavControllerContext();
+
+ scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
+ base::FilePath path_;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_CONTEXT_H_
« no previous file with comments | « content/browser/nav_controller/OWNERS ('k') | content/browser/nav_controller/nav_controller_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698