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

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

Issue 942633004: IndexedDB: Fixed support for empty blobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Backing store now creating empty file + test. Created 5 years, 9 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
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 #include <string> 10 #include <string>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 IndexedDBFactory* GetIDBFactory(); 61 IndexedDBFactory* GetIDBFactory();
62 62
63 // Disables the exit-time deletion of session-only data. 63 // Disables the exit-time deletion of session-only data.
64 void SetForceKeepSessionState() { force_keep_session_state_ = true; } 64 void SetForceKeepSessionState() { force_keep_session_state_ = true; }
65 65
66 // IndexedDBContext implementation: 66 // IndexedDBContext implementation:
67 base::SequencedTaskRunner* TaskRunner() const override; 67 base::SequencedTaskRunner* TaskRunner() const override;
68 std::vector<IndexedDBInfo> GetAllOriginsInfo() override; 68 std::vector<IndexedDBInfo> GetAllOriginsInfo() override;
69 int64 GetOriginDiskUsage(const GURL& origin_url) override; 69 int64 GetOriginDiskUsage(const GURL& origin_url) override;
70 int GetOriginBlobFileCount(const GURL& origin_url) override;
70 void DeleteForOrigin(const GURL& origin_url) override; 71 void DeleteForOrigin(const GURL& origin_url) override;
71 void CopyOriginData(const GURL& origin_url, 72 void CopyOriginData(const GURL& origin_url,
72 IndexedDBContext* dest_context) override; 73 IndexedDBContext* dest_context) override;
73 base::FilePath GetFilePathForTesting( 74 base::FilePath GetFilePathForTesting(
74 const std::string& origin_id) const override; 75 const std::string& origin_id) const override;
75 void SetTaskRunnerForTesting(base::SequencedTaskRunner* task_runner) override; 76 void SetTaskRunnerForTesting(base::SequencedTaskRunner* task_runner) override;
76 77
77 // Methods called by IndexedDBDispatcherHost for quota support. 78 // Methods called by IndexedDBDispatcherHost for quota support.
78 void ConnectionOpened(const GURL& origin_url, IndexedDBConnection* db); 79 void ConnectionOpened(const GURL& origin_url, IndexedDBConnection* db);
79 void ConnectionClosed(const GURL& origin_url, IndexedDBConnection* db); 80 void ConnectionClosed(const GURL& origin_url, IndexedDBConnection* db);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 scoped_ptr<std::set<GURL> > origin_set_; 157 scoped_ptr<std::set<GURL> > origin_set_;
157 OriginToSizeMap origin_size_map_; 158 OriginToSizeMap origin_size_map_;
158 OriginToSizeMap space_available_map_; 159 OriginToSizeMap space_available_map_;
159 160
160 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); 161 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl);
161 }; 162 };
162 163
163 } // namespace content 164 } // namespace content
164 165
165 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ 166 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698