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

Side by Side Diff: content/public/browser/graph/browser_context_dependency_manager.h

Issue 18796007: Content API changes to integrate base/graph. (Closed) Base URL: marinoni.mon:/usr/local/google/src/chromium/src@base_graph_review
Patch Set: Created 7 years, 5 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
OLDNEW
(Empty)
1 // Copyright (c) 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_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_
7
8 #include "base/basictypes.h"
9 #include "base/callback_forward.h"
10 #include "base/graph/keyed_dependency_manager.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/common/content_export.h"
13
14 namespace content {
15
16 class BrowserContext;
17
18 class CONTENT_EXPORT BrowserContextDependencyManager {
19 public:
20 typedef base::Callback<void(scoped_ptr<graph::DependencyManagerInstance>)>
21 StartupCallback;
22
23 BrowserContextDependencyManager(
24 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> >
25 default_dependency_manager,
26 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> >
27 off_the_record_dependency_manager);
28 ~BrowserContextDependencyManager();
29
30 void Startup(BrowserContext* browser_context,
31 StartupCallback completion_callback);
32 static void Shutdown(scoped_ptr<BrowserContextDependencyManager> instance,
33 const base::Closure& completion_callback);
34 private:
35 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> >
36 default_dependency_manager_;
37 scoped_ptr<graph::KeyedDependencyManager<BrowserContext*> >
38 off_the_record_dependency_manager_;
39
40 DISALLOW_COPY_AND_ASSIGN(BrowserContextDependencyManager);
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_PUBLIC_BROWSER_GRAPH_BROWSER_CONTEXT_DEPENDENCY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698