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

Side by Side Diff: content/browser/indexed_db/indexed_db_context_impl.h

Issue 13954002: Refactor IndexedDBInfo out of browsingdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix performance_ui_tests too 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
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_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // The indexed db file extension. 52 // The indexed db file extension.
53 static const base::FilePath::CharType kIndexedDBExtension[]; 53 static const base::FilePath::CharType kIndexedDBExtension[];
54 54
55 // Disables the exit-time deletion of session-only data. 55 // Disables the exit-time deletion of session-only data.
56 void SetForceKeepSessionState() { 56 void SetForceKeepSessionState() {
57 force_keep_session_state_ = true; 57 force_keep_session_state_ = true;
58 } 58 }
59 59
60 // IndexedDBContext implementation: 60 // IndexedDBContext implementation:
61 virtual std::vector<GURL> GetAllOrigins() OVERRIDE; 61 virtual std::vector<GURL> GetAllOrigins() OVERRIDE;
62 virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() OVERRIDE;
62 virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE; 63 virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE;
63 virtual base::Time GetOriginLastModified(const GURL& origin_url) OVERRIDE; 64 virtual base::Time GetOriginLastModified(const GURL& origin_url) OVERRIDE;
64 virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE; 65 virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE;
65 virtual base::FilePath GetFilePathForTesting( 66 virtual base::FilePath GetFilePathForTesting(
66 const string16& origin_id) const OVERRIDE; 67 const string16& origin_id) const OVERRIDE;
67 68
68 // Methods called by IndexedDBDispatcherHost for quota support. 69 // Methods called by IndexedDBDispatcherHost for quota support.
69 void ConnectionOpened(const GURL& origin_url, WebKit::WebIDBDatabase*); 70 void ConnectionOpened(const GURL& origin_url, WebKit::WebIDBDatabase*);
70 void ConnectionClosed(const GURL& origin_url, WebKit::WebIDBDatabase*); 71 void ConnectionClosed(const GURL& origin_url, WebKit::WebIDBDatabase*);
71 void TransactionComplete(const GURL& origin_url); 72 void TransactionComplete(const GURL& origin_url);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 OriginToSizeMap space_available_map_; 130 OriginToSizeMap space_available_map_;
130 typedef std::set<WebKit::WebIDBDatabase*> ConnectionSet; 131 typedef std::set<WebKit::WebIDBDatabase*> ConnectionSet;
131 std::map<GURL, ConnectionSet> connections_; 132 std::map<GURL, ConnectionSet> connections_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); 134 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl);
134 }; 135 };
135 136
136 } // namespace content 137 } // namespace content
137 138
138 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ 139 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698