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

Side by Side Diff: third_party/WebKit/public/platform/modules/indexeddb/WebIDBFactory.h

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check the |callbacks| for nullptr and use explicit delete. Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 35
36 class WebIDBCallbacks; 36 class WebIDBCallbacks;
37 class WebIDBDatabaseCallbacks; 37 class WebIDBDatabaseCallbacks;
38 class WebSecurityOrigin; 38 class WebSecurityOrigin;
39 class WebString; 39 class WebString;
40 40
41 class WebIDBFactory { 41 class WebIDBFactory {
42 public: 42 public:
43 virtual ~WebIDBFactory() { } 43 virtual ~WebIDBFactory() { }
44 44
45 virtual void getDatabaseNames(WebIDBCallbacks* callbacks, const WebSecurityO rigin&) { BLINK_ASSERT_NOT_REACHED(); } 45 virtual void getDatabaseNames(WebIDBCallbacks*, const WebSecurityOrigin&) = 0;
46 virtual void open(const WebString& name, long long version, long long transa ctionId, WebIDBCallbacks* callbacks, WebIDBDatabaseCallbacks* databaseCallbacks, const WebSecurityOrigin&) { BLINK_ASSERT_NOT_REACHED(); } 46 virtual void open(const WebString& name, long long version, long long transa ctionId, WebIDBCallbacks*, WebIDBDatabaseCallbacks*, const WebSecurityOrigin&) = 0;
47 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks* callback s, const WebSecurityOrigin&) { BLINK_ASSERT_NOT_REACHED(); } 47 virtual void deleteDatabase(const WebString& name, WebIDBCallbacks*, const W ebSecurityOrigin&) = 0;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // WebIDBFactory_h 52 #endif // WebIDBFactory_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698