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

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

Issue 13949013: Implement download link in chrome://indexeddb-internals/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | 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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 // Methods used in response to QuotaManager requests. 22 // Methods used in response to QuotaManager requests.
23 virtual std::vector<GURL> GetAllOrigins() = 0; 23 virtual std::vector<GURL> GetAllOrigins() = 0;
24 virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() = 0; 24 virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() = 0;
25 virtual int64 GetOriginDiskUsage(const GURL& origin_url) = 0; 25 virtual int64 GetOriginDiskUsage(const GURL& origin_url) = 0;
26 virtual base::Time GetOriginLastModified(const GURL& origin_url) = 0; 26 virtual base::Time GetOriginLastModified(const GURL& origin_url) = 0;
27 27
28 // Deletes all indexed db files for the given origin. 28 // Deletes all indexed db files for the given origin.
29 virtual void DeleteForOrigin(const GURL& origin_url) = 0; 29 virtual void DeleteForOrigin(const GURL& origin_url) = 0;
30 30
31 // Forces the origin to close all open files.
32 virtual void ForceClose(const GURL& origin_url) = 0;
jam 2013/04/17 16:41:22 there shouldn't be changes to the content api for
33
34 virtual base::FilePath GetFilePath(const GURL& origin_url) = 0;
35
36 virtual bool HasOrigin(const GURL& origin_url) = 0;
37
31 // Get the file name of the local storage file for the given origin. 38 // Get the file name of the local storage file for the given origin.
32 virtual base::FilePath GetFilePathForTesting( 39 virtual base::FilePath GetFilePathForTesting(
33 const string16& origin_id) const = 0; 40 const string16& origin_id) const = 0;
34 41
35 protected: 42 protected:
36 friend class base::RefCountedThreadSafe<IndexedDBContext>; 43 friend class base::RefCountedThreadSafe<IndexedDBContext>;
37 virtual ~IndexedDBContext() {} 44 virtual ~IndexedDBContext() {}
38 }; 45 };
39 46
40 } // namespace content 47 } // namespace content
41 48
42 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_ 49 #endif // CONTENT_PUBLIC_BROWSER_INDEXED_DB_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698