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

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

Issue 651503002: Clean up forward declarations in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 15 matching lines...) Expand all
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 "core/InspectorFrontend.h" 34 #include "core/InspectorFrontend.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/Forward.h"
37 #include "wtf/text/WTFString.h"
38 36
39 namespace blink { 37 namespace blink {
40 class Database; 38 class Database;
41 class InspectorFrontend;
42 39
43 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData baseResource> { 40 class InspectorDatabaseResource : public GarbageCollectedFinalized<InspectorData baseResource> {
44 public: 41 public:
45 static InspectorDatabaseResource* create(Database*, const String& domain, co nst String& name, const String& version); 42 static InspectorDatabaseResource* create(Database*, const String& domain, co nst String& name, const String& version);
46 void trace(Visitor*); 43 void trace(Visitor*);
47 44
48 void bind(InspectorFrontend::Database*); 45 void bind(InspectorFrontend::Database*);
49 Database* database() { return m_database.get(); } 46 Database* database() { return m_database.get(); }
50 void setDatabase(Database* database) { m_database = database; } 47 void setDatabase(Database* database) { m_database = database; }
51 String id() const { return m_id; } 48 String id() const { return m_id; }
52 49
53 private: 50 private:
54 InspectorDatabaseResource(Database*, const String& domain, const String& nam e, const String& version); 51 InspectorDatabaseResource(Database*, const String& domain, const String& nam e, const String& version);
55 52
56 Member<Database> m_database; 53 Member<Database> m_database;
57 String m_id; 54 String m_id;
58 String m_domain; 55 String m_domain;
59 String m_name; 56 String m_name;
60 String m_version; 57 String m_version;
61 }; 58 };
62 59
63 } // namespace blink 60 } // namespace blink
64 61
65 #endif // InspectorDatabaseResource_h 62 #endif // InspectorDatabaseResource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698