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

Side by Side Diff: content/public/browser/indexed_db_context.h

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 10 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
« no previous file with comments | « content/public/browser/dom_storage_context.h ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace base { 17 namespace base {
18 class Time; 18 class Time;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 class BrowserContext;
24
25 // Represents the per-BrowserContext IndexedDB data. 23 // Represents the per-BrowserContext IndexedDB data.
26 // Call these methods only on the WebKit thread. 24 // Call these methods only on the WebKit thread.
27 class IndexedDBContext : public base::RefCountedThreadSafe<IndexedDBContext> { 25 class IndexedDBContext : public base::RefCountedThreadSafe<IndexedDBContext> {
28 public: 26 public:
29 virtual ~IndexedDBContext() {} 27 virtual ~IndexedDBContext() {}
30 28
31 CONTENT_EXPORT static IndexedDBContext* GetForBrowserContext(
32 BrowserContext* browser_context);
33
34 // Methods used in response to QuotaManager requests. 29 // Methods used in response to QuotaManager requests.
35 virtual std::vector<GURL> GetAllOrigins() = 0; 30 virtual std::vector<GURL> GetAllOrigins() = 0;
36 virtual int64 GetOriginDiskUsage(const GURL& origin_url) = 0; 31 virtual int64 GetOriginDiskUsage(const GURL& origin_url) = 0;
37 virtual base::Time GetOriginLastModified(const GURL& origin_url) = 0; 32 virtual base::Time GetOriginLastModified(const GURL& origin_url) = 0;
38 33
39 // Deletes all indexed db files for the given origin. 34 // Deletes all indexed db files for the given origin.
40 virtual void DeleteForOrigin(const GURL& origin_url) = 0; 35 virtual void DeleteForOrigin(const GURL& origin_url) = 0;
41 36
42 // Get the file name of the local storage file for the given origin. 37 // Get the file name of the local storage file for the given origin.
43 virtual FilePath GetFilePathForTesting(const string16& origin_id) const = 0; 38 virtual FilePath GetFilePathForTesting(const string16& origin_id) const = 0;
44 }; 39 };
45 40
46 } // namespace content 41 } // namespace content
47 42
48 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ 43 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/browser/dom_storage_context.h ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698