OLD | NEW |
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 * | 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 ResourceRequest request(url); | 287 ResourceRequest request(url); |
288 request.setHTTPMethod("GET"); | 288 request.setHTTPMethod("GET"); |
289 | 289 |
290 Vector<char> data; | 290 Vector<char> data; |
291 ResourceError error; | 291 ResourceError error; |
292 ResourceResponse response; | 292 ResourceResponse response; |
293 m_frontendPage->mainFrame()->loader()->loadResourceSynchronously(request, Do
NotAllowStoredCredentials, error, response, data); | 293 m_frontendPage->mainFrame()->loader()->loadResourceSynchronously(request, Do
NotAllowStoredCredentials, error, response, data); |
294 return String(data.data(), data.size()); | 294 return String(data.data(), data.size()); |
295 } | 295 } |
296 | 296 |
| 297 bool InspectorFrontendHost::isUnderTest() |
| 298 { |
| 299 return m_client && m_client->isUnderTest(); |
| 300 } |
| 301 |
297 } // namespace WebCore | 302 } // namespace WebCore |
298 | 303 |
299 #endif // ENABLE(INSPECTOR) | 304 #endif // ENABLE(INSPECTOR) |
OLD | NEW |