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

Side by Side Diff: public/platform/WebIDBCallbacks.h

Issue 776693002: Clean forward declaration in public (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix fakewebplugin Created 6 years 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 | « public/platform/WebFederatedCredential.h ('k') | public/platform/WebIDBDatabase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 19 matching lines...) Expand all
30 #include "WebString.h" 30 #include "WebString.h"
31 #include "WebVector.h" 31 #include "WebVector.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class WebBlobInfo; 35 class WebBlobInfo;
36 class WebData; 36 class WebData;
37 class WebIDBCursor; 37 class WebIDBCursor;
38 class WebIDBDatabase; 38 class WebIDBDatabase;
39 class WebIDBDatabaseError; 39 class WebIDBDatabaseError;
40 class WebIDBIndex;
41 class WebIDBKey; 40 class WebIDBKey;
42 class WebIDBKeyPath; 41 class WebIDBKeyPath;
43 struct WebIDBMetadata; 42 struct WebIDBMetadata;
44 43
45 class WebIDBCallbacks { 44 class WebIDBCallbacks {
46 public: 45 public:
47 virtual ~WebIDBCallbacks() { } 46 virtual ~WebIDBCallbacks() { }
48 47
49 // Pointers transfer ownership. 48 // Pointers transfer ownership.
50 virtual void onError(const WebIDBDatabaseError&) { BLINK_ASSERT_NOT_REACHED( ); } 49 virtual void onError(const WebIDBDatabaseError&) { BLINK_ASSERT_NOT_REACHED( ); }
51 virtual void onSuccess(const WebVector<WebString>&) { BLINK_ASSERT_NOT_REACH ED(); } 50 virtual void onSuccess(const WebVector<WebString>&) { BLINK_ASSERT_NOT_REACH ED(); }
52 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri maryKey, const WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACH ED(); } 51 virtual void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& pri maryKey, const WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACH ED(); }
53 virtual void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) { BLINK_ASSER T_NOT_REACHED(); } 52 virtual void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) { BLINK_ASSER T_NOT_REACHED(); }
54 virtual void onSuccess(const WebIDBKey&) { BLINK_ASSERT_NOT_REACHED(); } 53 virtual void onSuccess(const WebIDBKey&) { BLINK_ASSERT_NOT_REACHED(); }
55 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) { BLIN K_ASSERT_NOT_REACHED(); } 54 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&) { BLIN K_ASSERT_NOT_REACHED(); }
56 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const WebIDBKey&, const WebIDBKeyPath&) { BLINK_ASSERT_NOT_REACHED(); } 55 virtual void onSuccess(const WebData&, const WebVector<WebBlobInfo>&, const WebIDBKey&, const WebIDBKeyPath&) { BLINK_ASSERT_NOT_REACHED(); }
57 virtual void onSuccess(long long) { BLINK_ASSERT_NOT_REACHED(); } 56 virtual void onSuccess(long long) { BLINK_ASSERT_NOT_REACHED(); }
58 virtual void onSuccess() { BLINK_ASSERT_NOT_REACHED(); } 57 virtual void onSuccess() { BLINK_ASSERT_NOT_REACHED(); }
59 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACHED(); } 58 virtual void onSuccess(const WebIDBKey&, const WebIDBKey& primaryKey, const WebData&, const WebVector<WebBlobInfo>&) { BLINK_ASSERT_NOT_REACHED(); }
60 virtual void onBlocked(long long oldVersion) { BLINK_ASSERT_NOT_REACHED(); } 59 virtual void onBlocked(long long oldVersion) { BLINK_ASSERT_NOT_REACHED(); }
61 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We bIDBMetadata&, unsigned short dataLoss, WebString dataLossMessage) { BLINK_ASSER T_NOT_REACHED(); } 60 virtual void onUpgradeNeeded(long long oldVersion, WebIDBDatabase*, const We bIDBMetadata&, unsigned short dataLoss, WebString dataLossMessage) { BLINK_ASSER T_NOT_REACHED(); }
62 }; 61 };
63 62
64 } // namespace blink 63 } // namespace blink
65 64
66 #endif // WebIDBCallbacks_h 65 #endif // WebIDBCallbacks_h
OLDNEW
« no previous file with comments | « public/platform/WebFederatedCredential.h ('k') | public/platform/WebIDBDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698