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

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

Issue 205853002: Oilpan: Prepare to move InspectorDatabaseResource to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: apply comments Created 6 years, 9 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
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 24 matching lines...) Expand all
35 #include "heap/Handle.h" 35 #include "heap/Handle.h"
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 #include "wtf/RefPtr.h" 38 #include "wtf/RefPtr.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 class Database; 42 class Database;
43 class InspectorFrontend; 43 class InspectorFrontend;
44 44
45 class InspectorDatabaseResource : public RefCounted<InspectorDatabaseResource> { 45 class InspectorDatabaseResource : public RefCountedWillBeGarbageCollectedFinaliz ed<InspectorDatabaseResource> {
46 public: 46 public:
47 static PassRefPtr<InspectorDatabaseResource> create(PassRefPtrWillBeRawPtr<D atabase>, const String& domain, const String& name, const String& version); 47 static PassRefPtrWillBeRawPtr<InspectorDatabaseResource> create(PassRefPtrWi llBeRawPtr<Database>, const String& domain, const String& name, const String& ve rsion);
48 void trace(Visitor*);
48 49
49 void bind(InspectorFrontend::Database*); 50 void bind(InspectorFrontend::Database*);
50 Database* database() { return m_database.get(); } 51 Database* database() { return m_database.get(); }
51 void setDatabase(PassRefPtrWillBeRawPtr<Database> database) { m_database = d atabase; } 52 void setDatabase(PassRefPtrWillBeRawPtr<Database> database) { m_database = d atabase; }
52 String id() const { return m_id; } 53 String id() const { return m_id; }
53 54
54 private: 55 private:
55 InspectorDatabaseResource(PassRefPtrWillBeRawPtr<Database>, const String& do main, const String& name, const String& version); 56 InspectorDatabaseResource(PassRefPtrWillBeRawPtr<Database>, const String& do main, const String& name, const String& version);
56 57
57 RefPtrWillBePersistent<Database> m_database; 58 RefPtrWillBeMember<Database> m_database;
58 String m_id; 59 String m_id;
59 String m_domain; 60 String m_domain;
60 String m_name; 61 String m_name;
61 String m_version; 62 String m_version;
62 }; 63 };
63 64
64 } // namespace WebCore 65 } // namespace WebCore
65 66
66 #endif // InspectorDatabaseResource_h 67 #endif // InspectorDatabaseResource_h
OLDNEW
« no previous file with comments | « Source/modules/webdatabase/InspectorDatabaseAgent.cpp ('k') | Source/modules/webdatabase/InspectorDatabaseResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698