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

Side by Side Diff: Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree") 134 : InspectorBaseAgent<InspectorLayerTreeAgent>("LayerTree")
135 , m_frontend(0) 135 , m_frontend(0)
136 , m_page(page) 136 , m_page(page)
137 { 137 {
138 } 138 }
139 139
140 InspectorLayerTreeAgent::~InspectorLayerTreeAgent() 140 InspectorLayerTreeAgent::~InspectorLayerTreeAgent()
141 { 141 {
142 } 142 }
143 143
144 void InspectorLayerTreeAgent::trace(Visitor* visitor)
145 {
146 visitor->trace(m_page);
147 InspectorBaseAgent::trace(visitor);
148 }
149
144 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend) 150 void InspectorLayerTreeAgent::setFrontend(InspectorFrontend* frontend)
145 { 151 {
146 m_frontend = frontend->layertree(); 152 m_frontend = frontend->layertree();
147 } 153 }
148 154
149 void InspectorLayerTreeAgent::clearFrontend() 155 void InspectorLayerTreeAgent::clearFrontend()
150 { 156 {
151 m_frontend = 0; 157 m_frontend = 0;
152 disable(0); 158 disable(0);
153 } 159 }
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer) 404 void InspectorLayerTreeAgent::didRemovePageOverlay(const GraphicsLayer* layer)
399 { 405 {
400 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id()); 406 size_t index = m_pageOverlayLayerIds.find(layer->platformLayer()->id());
401 if (index == WTF::kNotFound) 407 if (index == WTF::kNotFound)
402 return; 408 return;
403 m_pageOverlayLayerIds.remove(index); 409 m_pageOverlayLayerIds.remove(index);
404 } 410 }
405 411
406 412
407 } // namespace WebCore 413 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorLayerTreeAgent.h ('k') | Source/core/inspector/InspectorMemoryAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698