| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "modules/webdatabase/SQLStatementCallback.h" | 43 #include "modules/webdatabase/SQLStatementCallback.h" |
| 44 #include "modules/webdatabase/SQLStatementErrorCallback.h" | 44 #include "modules/webdatabase/SQLStatementErrorCallback.h" |
| 45 #include "modules/webdatabase/SQLTransaction.h" | 45 #include "modules/webdatabase/SQLTransaction.h" |
| 46 #include "modules/webdatabase/SQLTransactionCallback.h" | 46 #include "modules/webdatabase/SQLTransactionCallback.h" |
| 47 #include "modules/webdatabase/SQLTransactionErrorCallback.h" | 47 #include "modules/webdatabase/SQLTransactionErrorCallback.h" |
| 48 #include "modules/webdatabase/sqlite/SQLValue.h" | 48 #include "modules/webdatabase/sqlite/SQLValue.h" |
| 49 #include "platform/inspector_protocol/Values.h" | 49 #include "platform/inspector_protocol/Values.h" |
| 50 #include "wtf/RefCounted.h" | 50 #include "wtf/RefCounted.h" |
| 51 #include "wtf/Vector.h" | 51 #include "wtf/Vector.h" |
| 52 | 52 |
| 53 typedef blink::protocol::Backend::Database::ExecuteSQLCallback ExecuteSQLCallbac
k; | 53 typedef blink::protocol::Database::Backend::ExecuteSQLCallback ExecuteSQLCallbac
k; |
| 54 | 54 |
| 55 namespace blink { | 55 namespace blink { |
| 56 | 56 |
| 57 namespace DatabaseAgentState { | 57 namespace DatabaseAgentState { |
| 58 static const char databaseAgentEnabled[] = "databaseAgentEnabled"; | 58 static const char databaseAgentEnabled[] = "databaseAgentEnabled"; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 namespace { | 61 namespace { |
| 62 | 62 |
| 63 class ExecuteSQLCallbackWrapper : public RefCounted<ExecuteSQLCallbackWrapper> { | 63 class ExecuteSQLCallbackWrapper : public RefCounted<ExecuteSQLCallbackWrapper> { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 void InspectorDatabaseAgent::didCommitLoadForLocalFrame(LocalFrame* frame) | 240 void InspectorDatabaseAgent::didCommitLoadForLocalFrame(LocalFrame* frame) |
| 241 { | 241 { |
| 242 // FIXME(dgozman): adapt this for out-of-process iframes. | 242 // FIXME(dgozman): adapt this for out-of-process iframes. |
| 243 if (frame != m_page->mainFrame()) | 243 if (frame != m_page->mainFrame()) |
| 244 return; | 244 return; |
| 245 | 245 |
| 246 m_resources.clear(); | 246 m_resources.clear(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 InspectorDatabaseAgent::InspectorDatabaseAgent(Page* page) | 249 InspectorDatabaseAgent::InspectorDatabaseAgent(Page* page) |
| 250 : InspectorBaseAgent<InspectorDatabaseAgent, protocol::Frontend::Database>("
Database") | 250 : InspectorBaseAgent<InspectorDatabaseAgent, protocol::Database::Frontend>("
Database") |
| 251 , m_page(page) | 251 , m_page(page) |
| 252 , m_enabled(false) | 252 , m_enabled(false) |
| 253 { | 253 { |
| 254 } | 254 } |
| 255 | 255 |
| 256 InspectorDatabaseAgent::~InspectorDatabaseAgent() | 256 InspectorDatabaseAgent::~InspectorDatabaseAgent() |
| 257 { | 257 { |
| 258 } | 258 } |
| 259 | 259 |
| 260 void InspectorDatabaseAgent::enable(ErrorString*) | 260 void InspectorDatabaseAgent::enable(ErrorString*) |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 } | 345 } |
| 346 | 346 |
| 347 DEFINE_TRACE(InspectorDatabaseAgent) | 347 DEFINE_TRACE(InspectorDatabaseAgent) |
| 348 { | 348 { |
| 349 visitor->trace(m_page); | 349 visitor->trace(m_page); |
| 350 visitor->trace(m_resources); | 350 visitor->trace(m_resources); |
| 351 InspectorBaseAgent::trace(visitor); | 351 InspectorBaseAgent::trace(visitor); |
| 352 } | 352 } |
| 353 | 353 |
| 354 } // namespace blink | 354 } // namespace blink |
| OLD | NEW |