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

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

Issue 16879013: Use chromium logic for database identifier<->origin conversions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove webkit/base/origin_url_conversions Created 7 years, 6 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 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 IndexedDBContextImpl(const base::FilePath& data_path, 41 IndexedDBContextImpl(const base::FilePath& data_path,
42 quota::SpecialStoragePolicy* special_storage_policy, 42 quota::SpecialStoragePolicy* special_storage_policy,
43 quota::QuotaManagerProxy* quota_manager_proxy, 43 quota::QuotaManagerProxy* quota_manager_proxy,
44 base::MessageLoopProxy* webkit_thread_loop); 44 base::MessageLoopProxy* webkit_thread_loop);
45 45
46 WebIDBFactoryImpl* GetIDBFactory(); 46 WebIDBFactoryImpl* GetIDBFactory();
47 47
48 // The indexed db directory. 48 // The indexed db directory.
49 static const base::FilePath::CharType kIndexedDBDirectory[]; 49 static const base::FilePath::CharType kIndexedDBDirectory[];
50 50
51 // The indexed db file extension.
52 static const base::FilePath::CharType kIndexedDBExtension[];
53
54 // Disables the exit-time deletion of session-only data. 51 // Disables the exit-time deletion of session-only data.
55 void SetForceKeepSessionState() { force_keep_session_state_ = true; } 52 void SetForceKeepSessionState() { force_keep_session_state_ = true; }
56 53
57 // IndexedDBContext implementation: 54 // IndexedDBContext implementation:
58 virtual std::vector<GURL> GetAllOrigins() OVERRIDE; 55 virtual std::vector<GURL> GetAllOrigins() OVERRIDE;
59 virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() OVERRIDE; 56 virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() OVERRIDE;
60 virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE; 57 virtual int64 GetOriginDiskUsage(const GURL& origin_url) OVERRIDE;
61 virtual base::Time GetOriginLastModified(const GURL& origin_url) OVERRIDE; 58 virtual base::Time GetOriginLastModified(const GURL& origin_url) OVERRIDE;
62 virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE; 59 virtual void DeleteForOrigin(const GURL& origin_url) OVERRIDE;
63 virtual base::FilePath GetFilePathForTesting( 60 virtual base::FilePath GetFilePathForTesting(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 OriginToSizeMap space_available_map_; 127 OriginToSizeMap space_available_map_;
131 typedef std::set<WebIDBDatabaseImpl*> ConnectionSet; 128 typedef std::set<WebIDBDatabaseImpl*> ConnectionSet;
132 std::map<GURL, ConnectionSet> connections_; 129 std::map<GURL, ConnectionSet> connections_;
133 130
134 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl); 131 DISALLOW_COPY_AND_ASSIGN(IndexedDBContextImpl);
135 }; 132 };
136 133
137 } // namespace content 134 } // namespace content
138 135
139 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_ 136 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_CONTEXT_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.cc ('k') | content/browser/indexed_db/indexed_db_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698