| OLD | NEW |
| (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_ |
| OLD | NEW |