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

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

Issue 7745011: Remove --unlimited-quota-for-indexeddb. Increase incognito quota. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove IsUnlimitedStorageGranted Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Get the file name of the indexed db file for the given origin. 51 // Get the file name of the indexed db file for the given origin.
52 FilePath GetIndexedDBFilePath(const string16& origin_id) const; 52 FilePath GetIndexedDBFilePath(const string16& origin_id) const;
53 53
54 void set_clear_local_state_on_exit(bool clear_local_state) { 54 void set_clear_local_state_on_exit(bool clear_local_state) {
55 clear_local_state_on_exit_ = clear_local_state; 55 clear_local_state_on_exit_ = clear_local_state;
56 } 56 }
57 57
58 // Deletes all indexed db files for the given origin. 58 // Deletes all indexed db files for the given origin.
59 void DeleteIndexedDBForOrigin(const GURL& origin_url); 59 void DeleteIndexedDBForOrigin(const GURL& origin_url);
60 60
61 // Does a particular origin get unlimited storage?
62 bool IsUnlimitedStorageGranted(const GURL& origin) const;
63
64 // Methods used in response to QuotaManager requests. 61 // Methods used in response to QuotaManager requests.
65 void GetAllOriginIdentifiers(std::vector<string16>* origin_ids); 62 void GetAllOriginIdentifiers(std::vector<string16>* origin_ids);
66 int64 GetOriginDiskUsage(const GURL& origin_url); 63 int64 GetOriginDiskUsage(const GURL& origin_url);
67 64
68 // Methods called by IndexedDBDispatcherHost for quota support. 65 // Methods called by IndexedDBDispatcherHost for quota support.
69 void ConnectionOpened(const GURL& origin_url); 66 void ConnectionOpened(const GURL& origin_url);
70 void ConnectionClosed(const GURL& origin_url); 67 void ConnectionClosed(const GURL& origin_url);
71 void TransactionComplete(const GURL& origin_url); 68 void TransactionComplete(const GURL& origin_url);
72 bool WouldBeOverQuota(const GURL& origin_url, int64 additional_bytes); 69 bool WouldBeOverQuota(const GURL& origin_url, int64 additional_bytes);
73 bool IsOverQuota(const GURL& origin_url); 70 bool IsOverQuota(const GURL& origin_url);
(...skipping 29 matching lines...) Expand all
103 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; 100 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
104 101
105 OriginToSizeMap origin_size_map_; 102 OriginToSizeMap origin_size_map_;
106 OriginToSizeMap space_available_map_; 103 OriginToSizeMap space_available_map_;
107 std::map<GURL, unsigned int> connection_count_; 104 std::map<GURL, unsigned int> connection_count_;
108 105
109 DISALLOW_COPY_AND_ASSIGN(IndexedDBContext); 106 DISALLOW_COPY_AND_ASSIGN(IndexedDBContext);
110 }; 107 };
111 108
112 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ 109 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698