OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 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 * 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 25 matching lines...) Expand all Loading... |
36 #include "core/page/Frame.h" | 36 #include "core/page/Frame.h" |
37 #include "core/platform/network/NetworkStateNotifier.h" | 37 #include "core/platform/network/NetworkStateNotifier.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 namespace ApplicationCacheAgentState { | 41 namespace ApplicationCacheAgentState { |
42 static const char applicationCacheAgentEnabled[] = "applicationCacheAgentEnabled
"; | 42 static const char applicationCacheAgentEnabled[] = "applicationCacheAgentEnabled
"; |
43 } | 43 } |
44 | 44 |
45 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InstrumentingAgen
ts* instrumentingAgents, InspectorCompositeState* state, InspectorPageAgent* pag
eAgent) | 45 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InstrumentingAgen
ts* instrumentingAgents, InspectorCompositeState* state, InspectorPageAgent* pag
eAgent) |
46 : InspectorBaseAgent<InspectorApplicationCacheAgent>(ASCIILiteral("Applicati
onCache"), instrumentingAgents, state) | 46 : InspectorBaseAgent<InspectorApplicationCacheAgent>("ApplicationCache", ins
trumentingAgents, state) |
47 , m_pageAgent(pageAgent) | 47 , m_pageAgent(pageAgent) |
48 , m_frontend(0) | 48 , m_frontend(0) |
49 { | 49 { |
50 } | 50 } |
51 | 51 |
52 void InspectorApplicationCacheAgent::setFrontend(InspectorFrontend* frontend) | 52 void InspectorApplicationCacheAgent::setFrontend(InspectorFrontend* frontend) |
53 { | 53 { |
54 m_frontend = frontend->applicationcache(); | 54 m_frontend = frontend->applicationcache(); |
55 } | 55 } |
56 | 56 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 RefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> value = Type
Builder::ApplicationCache::ApplicationCacheResource::create() | 198 RefPtr<TypeBuilder::ApplicationCache::ApplicationCacheResource> value = Type
Builder::ApplicationCache::ApplicationCacheResource::create() |
199 .setUrl(resourceInfo.m_resource.string()) | 199 .setUrl(resourceInfo.m_resource.string()) |
200 .setSize(static_cast<int>(resourceInfo.m_size)) | 200 .setSize(static_cast<int>(resourceInfo.m_size)) |
201 .setType(types); | 201 .setType(types); |
202 return value; | 202 return value; |
203 } | 203 } |
204 | 204 |
205 } // namespace WebCore | 205 } // namespace WebCore |
206 | 206 |
OLD | NEW |