| 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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 } | 776 } |
| 777 | 777 |
| 778 ScriptState* script_state = ToScriptStateForMainWorld(frame); | 778 ScriptState* script_state = ToScriptStateForMainWorld(frame); |
| 779 if (!script_state) { | 779 if (!script_state) { |
| 780 request_callback->sendFailure(Response::InternalError()); | 780 request_callback->sendFailure(Response::InternalError()); |
| 781 return; | 781 return; |
| 782 } | 782 } |
| 783 ScriptState::Scope scope(script_state); | 783 ScriptState::Scope scope(script_state); |
| 784 DummyExceptionStateForTesting exception_state; | 784 DummyExceptionStateForTesting exception_state; |
| 785 IDBRequest* idb_request = | 785 IDBRequest* idb_request = |
| 786 idb_factory->GetDatabaseNames(script_state, exception_state); | 786 idb_factory->getDatabaseNames(script_state, exception_state); |
| 787 if (exception_state.HadException()) { | 787 if (exception_state.HadException()) { |
| 788 request_callback->sendFailure( | 788 request_callback->sendFailure( |
| 789 Response::Error("Could not obtain database names.")); | 789 Response::Error("Could not obtain database names.")); |
| 790 return; | 790 return; |
| 791 } | 791 } |
| 792 idb_request->addEventListener( | 792 idb_request->addEventListener( |
| 793 EventTypeNames::success, | 793 EventTypeNames::success, |
| 794 GetDatabaseNamesCallback::Create( | 794 GetDatabaseNamesCallback::Create( |
| 795 std::move(request_callback), | 795 std::move(request_callback), |
| 796 document->GetSecurityOrigin()->ToRawString()), | 796 document->GetSecurityOrigin()->ToRawString()), |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 document->GetSecurityOrigin()->ToRawString()), | 1036 document->GetSecurityOrigin()->ToRawString()), |
| 1037 false); | 1037 false); |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 DEFINE_TRACE(InspectorIndexedDBAgent) { | 1040 DEFINE_TRACE(InspectorIndexedDBAgent) { |
| 1041 visitor->Trace(inspected_frames_); | 1041 visitor->Trace(inspected_frames_); |
| 1042 InspectorBaseAgent::Trace(visitor); | 1042 InspectorBaseAgent::Trace(visitor); |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 } // namespace blink | 1045 } // namespace blink |
| OLD | NEW |