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

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

Issue 147353007: DevTools: remove references to modules/webdatabase from core/inspector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webdatabase/DatabaseClient.cpp » ('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) 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 19 matching lines...) Expand all
30 30
31 #ifndef DatabaseClient_h 31 #ifndef DatabaseClient_h
32 #define DatabaseClient_h 32 #define DatabaseClient_h
33 33
34 #include "core/page/Page.h" 34 #include "core/page/Page.h"
35 #include "core/workers/WorkerClients.h" 35 #include "core/workers/WorkerClients.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class Database;
40 class ExecutionContext; 41 class ExecutionContext;
42 class InspectorDatabaseAgent;
41 class WorkerClients; 43 class WorkerClients;
42 44
43 class DatabaseClient : public Supplement<Page>, public Supplement<WorkerClients> { 45 class DatabaseClient : public Supplement<Page>, public Supplement<WorkerClients> {
44 WTF_MAKE_NONCOPYABLE(DatabaseClient); 46 WTF_MAKE_NONCOPYABLE(DatabaseClient);
45 public: 47 public:
46 DatabaseClient() { } 48 DatabaseClient();
47 virtual ~DatabaseClient() { } 49 virtual ~DatabaseClient() { }
48 50
49 virtual bool allowDatabase(ExecutionContext*, const String& name, const Stri ng& displayName, unsigned long estimatedSize) = 0; 51 virtual bool allowDatabase(ExecutionContext*, const String& name, const Stri ng& displayName, unsigned long estimatedSize) = 0;
50 52
53 void didOpenDatabase(PassRefPtr<Database>, const String& domain, const Strin g& name, const String& version);
54
51 static DatabaseClient* from(ExecutionContext*); 55 static DatabaseClient* from(ExecutionContext*);
52 static const char* supplementName(); 56 static const char* supplementName();
57
58 void createInspectorAgentFor(Page*);
59
60 private:
61 InspectorDatabaseAgent* m_inspectorAgent;
53 }; 62 };
54 63
55 void provideDatabaseClientTo(Page*, PassOwnPtr<DatabaseClient>); 64 void provideDatabaseClientTo(Page*, PassOwnPtr<DatabaseClient>);
56 void provideDatabaseClientToWorker(WorkerClients*, PassOwnPtr<DatabaseClient>); 65 void provideDatabaseClientToWorker(WorkerClients*, PassOwnPtr<DatabaseClient>);
57 66
58 } // namespace WebCore 67 } // namespace WebCore
59 68
60 #endif // DatabaseClient_h 69 #endif // DatabaseClient_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webdatabase/DatabaseClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698