| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_H_ | 6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 explicit Options(bool include_transaction, | 24 explicit Options(bool include_transaction, |
| 25 bool no_records, | 25 bool no_records, |
| 26 bool values, | 26 bool values, |
| 27 unsigned short types); | 27 unsigned short types); |
| 28 Options(const Options&); | 28 Options(const Options&); |
| 29 ~Options(); | 29 ~Options(); |
| 30 | 30 |
| 31 bool include_transaction; | 31 bool include_transaction; |
| 32 bool no_records; | 32 bool no_records; |
| 33 bool values; | 33 bool values; |
| 34 // Each bit in operation type corresponds to blink::WebIDBOperationType | 34 // Operation type bits are set corresponding to WebIDBOperationType. |
| 35 // values. | |
| 36 std::bitset<blink::WebIDBOperationTypeCount> operation_types; | 35 std::bitset<blink::WebIDBOperationTypeCount> operation_types; |
| 37 }; | 36 }; |
| 38 IndexedDBObserver(int32_t observer_id, | 37 IndexedDBObserver(int32_t observer_id, |
| 39 std::set<int64_t> object_store_ids, | 38 std::set<int64_t> object_store_ids, |
| 40 const Options& options); | 39 const Options& options); |
| 41 ~IndexedDBObserver(); | 40 ~IndexedDBObserver(); |
| 42 | 41 |
| 43 int32_t id() const { return id_; } | 42 int32_t id() const { return id_; } |
| 44 const std::set<int64_t>& object_store_ids() const { | 43 const std::set<int64_t>& object_store_ids() const { |
| 45 return object_store_ids_; | 44 return object_store_ids_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 60 int32_t id_; | 59 int32_t id_; |
| 61 std::set<int64_t> object_store_ids_; | 60 std::set<int64_t> object_store_ids_; |
| 62 Options options_; | 61 Options options_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(IndexedDBObserver); | 63 DISALLOW_COPY_AND_ASSIGN(IndexedDBObserver); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace content | 66 } // namespace content |
| 68 | 67 |
| 69 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_H_ | 68 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_OBSERVER_H_ |
| OLD | NEW |