| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 executable_with_database_(executable_with_database) {} | 312 executable_with_database_(executable_with_database) {} |
| 313 RefPtr<ExecutableWithDatabase<RequestCallback>> executable_with_database_; | 313 RefPtr<ExecutableWithDatabase<RequestCallback>> executable_with_database_; |
| 314 }; | 314 }; |
| 315 | 315 |
| 316 static IDBTransaction* TransactionForDatabase( | 316 static IDBTransaction* TransactionForDatabase( |
| 317 ScriptState* script_state, | 317 ScriptState* script_state, |
| 318 IDBDatabase* idb_database, | 318 IDBDatabase* idb_database, |
| 319 const String& object_store_name, | 319 const String& object_store_name, |
| 320 const String& mode = IndexedDBNames::readonly) { | 320 const String& mode = IndexedDBNames::readonly) { |
| 321 DummyExceptionStateForTesting exception_state; | 321 DummyExceptionStateForTesting exception_state; |
| 322 StringOrStringSequenceOrDOMStringList scope; | 322 StringOrStringSequence scope; |
| 323 scope.setString(object_store_name); | 323 scope.setString(object_store_name); |
| 324 IDBTransaction* idb_transaction = | 324 IDBTransaction* idb_transaction = |
| 325 idb_database->transaction(script_state, scope, mode, exception_state); | 325 idb_database->transaction(script_state, scope, mode, exception_state); |
| 326 if (exception_state.HadException()) | 326 if (exception_state.HadException()) |
| 327 return nullptr; | 327 return nullptr; |
| 328 return idb_transaction; | 328 return idb_transaction; |
| 329 } | 329 } |
| 330 | 330 |
| 331 static IDBObjectStore* ObjectStoreForTransaction( | 331 static IDBObjectStore* ObjectStoreForTransaction( |
| 332 IDBTransaction* idb_transaction, | 332 IDBTransaction* idb_transaction, |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 document->GetSecurityOrigin()->ToRawString()), | 1035 document->GetSecurityOrigin()->ToRawString()), |
| 1036 false); | 1036 false); |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 DEFINE_TRACE(InspectorIndexedDBAgent) { | 1039 DEFINE_TRACE(InspectorIndexedDBAgent) { |
| 1040 visitor->Trace(inspected_frames_); | 1040 visitor->Trace(inspected_frames_); |
| 1041 InspectorBaseAgent::Trace(visitor); | 1041 InspectorBaseAgent::Trace(visitor); |
| 1042 } | 1042 } |
| 1043 | 1043 |
| 1044 } // namespace blink | 1044 } // namespace blink |
| OLD | NEW |