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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseClient.h

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 26 matching lines...) Expand all
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class Database; 42 class Database;
43 class ExecutionContext; 43 class ExecutionContext;
44 class InspectorDatabaseAgent; 44 class InspectorDatabaseAgent;
45 class Page; 45 class Page;
46 46
47 class MODULES_EXPORT DatabaseClient : public HeapSupplement<Page> { 47 class MODULES_EXPORT DatabaseClient : public Supplement<Page> {
48 WTF_MAKE_NONCOPYABLE(DatabaseClient); 48 WTF_MAKE_NONCOPYABLE(DatabaseClient);
49 public: 49 public:
50 DatabaseClient(); 50 DatabaseClient();
51 virtual ~DatabaseClient() { } 51 virtual ~DatabaseClient() { }
52 52
53 DECLARE_VIRTUAL_TRACE(); 53 DECLARE_VIRTUAL_TRACE();
54 54
55 virtual bool allowDatabase(ExecutionContext*, const String& name, const Stri ng& displayName, unsigned long estimatedSize) = 0; 55 virtual bool allowDatabase(ExecutionContext*, const String& name, const Stri ng& displayName, unsigned long estimatedSize) = 0;
56 56
57 void didOpenDatabase(Database*, const String& domain, const String& name, co nst String& version); 57 void didOpenDatabase(Database*, const String& domain, const String& name, co nst String& version);
58 58
59 static DatabaseClient* fromPage(Page*); 59 static DatabaseClient* fromPage(Page*);
60 static DatabaseClient* from(ExecutionContext*); 60 static DatabaseClient* from(ExecutionContext*);
61 static const char* supplementName(); 61 static const char* supplementName();
62 62
63 void setInspectorAgent(InspectorDatabaseAgent*); 63 void setInspectorAgent(InspectorDatabaseAgent*);
64 64
65 private: 65 private:
66 Member<InspectorDatabaseAgent> m_inspectorAgent; 66 Member<InspectorDatabaseAgent> m_inspectorAgent;
67 }; 67 };
68 68
69 MODULES_EXPORT void provideDatabaseClientTo(Page&, RawPtr<DatabaseClient>); 69 MODULES_EXPORT void provideDatabaseClientTo(Page&, RawPtr<DatabaseClient>);
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // DatabaseClient_h 73 #endif // DatabaseClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698