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 229 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::Database::Frontend>("
Database") | 250 : m_page(page) |
251 , m_page(page) | |
252 , m_enabled(false) | 251 , m_enabled(false) |
253 { | 252 { |
254 } | 253 } |
255 | 254 |
256 InspectorDatabaseAgent::~InspectorDatabaseAgent() | 255 InspectorDatabaseAgent::~InspectorDatabaseAgent() |
257 { | 256 { |
258 } | 257 } |
259 | 258 |
260 void InspectorDatabaseAgent::enable(ErrorString*) | 259 void InspectorDatabaseAgent::enable(ErrorString*) |
261 { | 260 { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 } | 344 } |
346 | 345 |
347 DEFINE_TRACE(InspectorDatabaseAgent) | 346 DEFINE_TRACE(InspectorDatabaseAgent) |
348 { | 347 { |
349 visitor->trace(m_page); | 348 visitor->trace(m_page); |
350 visitor->trace(m_resources); | 349 visitor->trace(m_resources); |
351 InspectorBaseAgent::trace(visitor); | 350 InspectorBaseAgent::trace(visitor); |
352 } | 351 } |
353 | 352 |
354 } // namespace blink | 353 } // namespace blink |
OLD | NEW |