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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_CONTEXT_H_
6 #define CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_CONTEXT_H_
7
8 #include "base/files/file_path.h"
jam 2013/09/13 22:44:41 nit: no need
9 #include "base/memory/ref_counted.h"
10
11 // TODO(alecflett): Promote to an interface and put in content/public
12 // 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
13
14 namespace base {
15 class FilePath;
16 }
17
18 namespace quota {
19 class QuotaManagerProxy;
20 }
21
22 namespace content {
23
24 // This class manages metadata associated with all navigation
25 // controllers, including:
26 // - persistent storage of pattern -> controller scripts
27 // - initialization and initial installation of controllers
28 // - dispatching of non-fetch events to controllers
29 class NavControllerContext
30 : public base::RefCountedThreadSafe<NavControllerContext> {
jam 2013/09/13 22:44:41 why is this refcounted?
31 public:
32 // This is owned by the StoragePartition, which will supply it with
33 // the local path on disk.
34 NavControllerContext(const base::FilePath& path,
35 quota::QuotaManagerProxy* quota_manager_proxy);
36
37 private:
38 friend class base::RefCountedThreadSafe<NavControllerContext>;
39 ~NavControllerContext();
40
41 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
42 base::FilePath path_;
43 };
44
45 } // namespace content
46
47 #endif // CONTENT_BROWSER_NAV_CONTROLLER_NAV_CONTROLLER_CONTEXT_H_
OLDNEW
« 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