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

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

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 14 matching lines...) Expand all
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef InspectorDatabaseResource_h 31 #ifndef InspectorDatabaseResource_h
32 #define InspectorDatabaseResource_h 32 #define InspectorDatabaseResource_h
33 33
34 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
35 #include "platform/inspector_protocol/Frontend.h" 35 #include "platform/inspector_protocol/TypeBuilder.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 class Database; 40 class Database;
41 41
42 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData baseResource> { 42 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData baseResource> {
43 public: 43 public:
44 static InspectorDatabaseResource* create(Database*, const String& domain, co nst String& name, const String& version); 44 static InspectorDatabaseResource* create(Database*, const String& domain, co nst String& name, const String& version);
45 DECLARE_TRACE(); 45 DECLARE_TRACE();
46 46
47 void bind(protocol::Database::Frontend*); 47 void bind(protocol::Database::Frontend*);
48 Database* database() { return m_database.get(); } 48 Database* database() { return m_database.get(); }
49 void setDatabase(Database* database) { m_database = database; } 49 void setDatabase(Database* database) { m_database = database; }
50 String id() const { return m_id; } 50 String id() const { return m_id; }
51 51
52 private: 52 private:
53 InspectorDatabaseResource(Database*, const String& domain, const String& nam e, const String& version); 53 InspectorDatabaseResource(Database*, const String& domain, const String& nam e, const String& version);
54 54
55 Member<Database> m_database; 55 Member<Database> m_database;
56 String m_id; 56 String m_id;
57 String m_domain; 57 String m_domain;
58 String m_name; 58 String m_name;
59 String m_version; 59 String m_version;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // InspectorDatabaseResource_h 64 #endif // InspectorDatabaseResource_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698