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

Side by Side Diff: content/browser/resource_context.h

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 9 years, 8 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 (c) 2011 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_RESOURCE_CONTEXT_H_
6 #define CONTENT_BROWSER_RESOURCE_CONTEXT_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10
11 namespace webkit_database {
12 class DatabaseTracker;
13 } // namespace webkit_database
14
15 namespace content {
16
17 // ResourceContext contains the relevant context information required for
18 // resource loading. It lives on the IO thread, although it is constructed on
19 // the UI thread. ResourceContext doesn't own anything it points to, it just
20 // holds pointers to relevant objects to resource loading.
21 class ResourceContext {
22 public:
23 virtual ~ResourceContext();
24
25 webkit_database::DatabaseTracker* database_tracker() const;
26 void set_database_tracker(webkit_database::DatabaseTracker* tracker);
27
28 protected:
29 ResourceContext();
30
31 private:
32 virtual void EnsureInitialized() const = 0;
33
34 webkit_database::DatabaseTracker* database_tracker_;
35
36 DISALLOW_COPY_AND_ASSIGN(ResourceContext);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_message_filter.cc ('k') | content/browser/resource_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698