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

Side by Side Diff: Source/WebCore/inspector/InjectedScriptHost.h

Issue 13774005: Remove the ENABLE_SQL_DATABASE compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: python Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 struct EventListenerInfo; 58 struct EventListenerInfo;
59 59
60 class InjectedScriptHost : public RefCounted<InjectedScriptHost> { 60 class InjectedScriptHost : public RefCounted<InjectedScriptHost> {
61 public: 61 public:
62 static PassRefPtr<InjectedScriptHost> create(); 62 static PassRefPtr<InjectedScriptHost> create();
63 ~InjectedScriptHost(); 63 ~InjectedScriptHost();
64 64
65 void init(InspectorAgent* inspectorAgent 65 void init(InspectorAgent* inspectorAgent
66 , InspectorConsoleAgent* consoleAgent 66 , InspectorConsoleAgent* consoleAgent
67 #if ENABLE(SQL_DATABASE)
68 , InspectorDatabaseAgent* databaseAgent 67 , InspectorDatabaseAgent* databaseAgent
69 #endif
70 , InspectorDOMStorageAgent* domStorageAgent 68 , InspectorDOMStorageAgent* domStorageAgent
71 , InspectorDOMAgent* domAgent 69 , InspectorDOMAgent* domAgent
72 , InspectorDebuggerAgent* debuggerAgent 70 , InspectorDebuggerAgent* debuggerAgent
73 ) 71 )
74 { 72 {
75 m_inspectorAgent = inspectorAgent; 73 m_inspectorAgent = inspectorAgent;
76 m_consoleAgent = consoleAgent; 74 m_consoleAgent = consoleAgent;
77 #if ENABLE(SQL_DATABASE)
78 m_databaseAgent = databaseAgent; 75 m_databaseAgent = databaseAgent;
79 #endif
80 m_domStorageAgent = domStorageAgent; 76 m_domStorageAgent = domStorageAgent;
81 m_domAgent = domAgent; 77 m_domAgent = domAgent;
82 m_debuggerAgent = debuggerAgent; 78 m_debuggerAgent = debuggerAgent;
83 } 79 }
84 80
85 static Node* scriptValueAsNode(ScriptValue); 81 static Node* scriptValueAsNode(ScriptValue);
86 static ScriptValue nodeAsScriptValue(ScriptState*, Node*); 82 static ScriptValue nodeAsScriptValue(ScriptState*, Node*);
87 83
88 void disconnect(); 84 void disconnect();
89 85
90 class InspectableObject { 86 class InspectableObject {
91 WTF_MAKE_FAST_ALLOCATED; 87 WTF_MAKE_FAST_ALLOCATED;
92 public: 88 public:
93 virtual ScriptValue get(ScriptState*); 89 virtual ScriptValue get(ScriptState*);
94 virtual ~InspectableObject() { } 90 virtual ~InspectableObject() { }
95 }; 91 };
96 void addInspectedObject(PassOwnPtr<InspectableObject>); 92 void addInspectedObject(PassOwnPtr<InspectableObject>);
97 void clearInspectedObjects(); 93 void clearInspectedObjects();
98 InspectableObject* inspectedObject(unsigned int num); 94 InspectableObject* inspectedObject(unsigned int num);
99 95
100 void inspectImpl(PassRefPtr<InspectorValue> objectToInspect, PassRefPtr<Insp ectorValue> hints); 96 void inspectImpl(PassRefPtr<InspectorValue> objectToInspect, PassRefPtr<Insp ectorValue> hints);
101 void getEventListenersImpl(Node*, Vector<EventListenerInfo>& listenersArray) ; 97 void getEventListenersImpl(Node*, Vector<EventListenerInfo>& listenersArray) ;
102 98
103 void clearConsoleMessages(); 99 void clearConsoleMessages();
104 void copyText(const String& text); 100 void copyText(const String& text);
105 #if ENABLE(SQL_DATABASE)
106 String databaseIdImpl(Database*); 101 String databaseIdImpl(Database*);
107 #endif
108 String storageIdImpl(Storage*); 102 String storageIdImpl(Storage*);
109 103
110 ScriptDebugServer& scriptDebugServer(); 104 ScriptDebugServer& scriptDebugServer();
111 105
112 private: 106 private:
113 InjectedScriptHost(); 107 InjectedScriptHost();
114 108
115 InspectorAgent* m_inspectorAgent; 109 InspectorAgent* m_inspectorAgent;
116 InspectorConsoleAgent* m_consoleAgent; 110 InspectorConsoleAgent* m_consoleAgent;
117 #if ENABLE(SQL_DATABASE)
118 InspectorDatabaseAgent* m_databaseAgent; 111 InspectorDatabaseAgent* m_databaseAgent;
119 #endif
120 InspectorDOMStorageAgent* m_domStorageAgent; 112 InspectorDOMStorageAgent* m_domStorageAgent;
121 InspectorDOMAgent* m_domAgent; 113 InspectorDOMAgent* m_domAgent;
122 InspectorDebuggerAgent* m_debuggerAgent; 114 InspectorDebuggerAgent* m_debuggerAgent;
123 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; 115 Vector<OwnPtr<InspectableObject> > m_inspectedObjects;
124 OwnPtr<InspectableObject> m_defaultInspectableObject; 116 OwnPtr<InspectableObject> m_defaultInspectableObject;
125 }; 117 };
126 118
127 } // namespace WebCore 119 } // namespace WebCore
128 120
129 #endif // !defined(InjectedScriptHost_h) 121 #endif // !defined(InjectedScriptHost_h)
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/CodeGeneratorInspector.py ('k') | Source/WebCore/inspector/InjectedScriptHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698