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

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

Issue 2109273002: IndexedDB: Created IndexedDBDataLossInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initializing data loss in IndexedDBBackingStore::Open Created 4 years, 5 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
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_unittest.cc ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MOCK_INDEXED_DB_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_
6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 MOCK_METHOD1(DatabaseDeleted, 50 MOCK_METHOD1(DatabaseDeleted,
51 void(const IndexedDBDatabase::Identifier& identifier)); 51 void(const IndexedDBDatabase::Identifier& identifier));
52 MOCK_CONST_METHOD1(GetConnectionCount, size_t(const url::Origin& origin)); 52 MOCK_CONST_METHOD1(GetConnectionCount, size_t(const url::Origin& origin));
53 53
54 MOCK_METHOD2(ReportOutstandingBlobs, 54 MOCK_METHOD2(ReportOutstandingBlobs,
55 void(const url::Origin& origin, bool blobs_outstanding)); 55 void(const url::Origin& origin, bool blobs_outstanding));
56 56
57 protected: 57 protected:
58 virtual ~MockIndexedDBFactory(); 58 virtual ~MockIndexedDBFactory();
59 59
60 MOCK_METHOD7(OpenBackingStore, 60 MOCK_METHOD6(OpenBackingStore,
61 scoped_refptr<IndexedDBBackingStore>( 61 scoped_refptr<IndexedDBBackingStore>(
62 const url::Origin& origin, 62 const url::Origin& origin,
63 const base::FilePath& data_directory, 63 const base::FilePath& data_directory,
64 net::URLRequestContext* request_context, 64 net::URLRequestContext* request_context,
65 blink::WebIDBDataLoss* data_loss, 65 IndexedDBDataLossInfo* data_loss_info,
66 std::string* data_loss_reason,
67 bool* disk_full, 66 bool* disk_full,
68 leveldb::Status* s)); 67 leveldb::Status* s));
69 68
70 MOCK_METHOD8(OpenBackingStoreHelper, 69 MOCK_METHOD7(OpenBackingStoreHelper,
71 scoped_refptr<IndexedDBBackingStore>( 70 scoped_refptr<IndexedDBBackingStore>(
72 const url::Origin& origin, 71 const url::Origin& origin,
73 const base::FilePath& data_directory, 72 const base::FilePath& data_directory,
74 net::URLRequestContext* request_context, 73 net::URLRequestContext* request_context,
75 blink::WebIDBDataLoss* data_loss, 74 IndexedDBDataLossInfo* data_loss_info,
76 std::string* data_loss_message,
77 bool* disk_full, 75 bool* disk_full,
78 bool first_time, 76 bool first_time,
79 leveldb::Status* s)); 77 leveldb::Status* s));
80 78
81 private: 79 private:
82 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory); 80 DISALLOW_COPY_AND_ASSIGN(MockIndexedDBFactory);
83 }; 81 };
84 82
85 } // namespace content 83 } // namespace content
86 84
87 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_ 85 #endif // CONTENT_BROWSER_INDEXED_DB_MOCK_INDEXED_DB_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698