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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorApplicationCacheAgent.cpp

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
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 22 matching lines...) Expand all
33 #include "core/page/NetworkStateNotifier.h" 33 #include "core/page/NetworkStateNotifier.h"
34 #include "wtf/text/StringBuilder.h" 34 #include "wtf/text/StringBuilder.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 namespace ApplicationCacheAgentState { 38 namespace ApplicationCacheAgentState {
39 static const char applicationCacheAgentEnabled[] = "applicationCacheAgentEnabled "; 39 static const char applicationCacheAgentEnabled[] = "applicationCacheAgentEnabled ";
40 } 40 }
41 41
42 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InspectedFrames* inspectedFrames) 42 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(InspectedFrames* inspectedFrames)
43 : InspectorBaseAgent<InspectorApplicationCacheAgent, protocol::ApplicationCa che::Frontend>("ApplicationCache") 43 : m_inspectedFrames(inspectedFrames)
44 , m_inspectedFrames(inspectedFrames)
45 { 44 {
46 } 45 }
47 46
48 void InspectorApplicationCacheAgent::restore() 47 void InspectorApplicationCacheAgent::restore()
49 { 48 {
50 if (m_state->booleanProperty(ApplicationCacheAgentState::applicationCacheAge ntEnabled, false)) { 49 if (m_state->booleanProperty(ApplicationCacheAgentState::applicationCacheAge ntEnabled, false)) {
51 ErrorString error; 50 ErrorString error;
52 enable(&error); 51 enable(&error);
53 } 52 }
54 } 53 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 return value; 195 return value;
197 } 196 }
198 197
199 DEFINE_TRACE(InspectorApplicationCacheAgent) 198 DEFINE_TRACE(InspectorApplicationCacheAgent)
200 { 199 {
201 visitor->trace(m_inspectedFrames); 200 visitor->trace(m_inspectedFrames);
202 InspectorBaseAgent::trace(visitor); 201 InspectorBaseAgent::trace(visitor);
203 } 202 }
204 203
205 } // namespace blink 204 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698