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

Side by Side Diff: Source/core/inspector/InspectorPageAgent.h

Issue 898593002: DevTools: use per-LocalFrame instrumenting agents instead of per-Page ones. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed assertion Created 5 years, 10 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "core/inspector/InspectorBaseAgent.h" 36 #include "core/inspector/InspectorBaseAgent.h"
37 #include "core/inspector/InspectorResourceContentLoader.h" 37 #include "core/inspector/InspectorResourceContentLoader.h"
38 #include "wtf/HashMap.h" 38 #include "wtf/HashMap.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class Resource; 43 class Resource;
44 class Document; 44 class Document;
45 class DocumentLoader; 45 class DocumentLoader;
46 class LocalFrame; 46 class FrameHost;
47 class GraphicsContext; 47 class GraphicsContext;
48 class GraphicsLayer; 48 class GraphicsLayer;
49 class InjectedScriptManager; 49 class InjectedScriptManager;
50 class InspectorClient; 50 class InspectorClient;
51 class InspectorOverlay; 51 class InspectorOverlay;
52 class InspectorResourceContentLoader; 52 class InspectorResourceContentLoader;
53 class KURL; 53 class KURL;
54 class LayoutRect; 54 class LayoutRect;
55 class LocalFrame;
55 class Page; 56 class Page;
56 class RenderObject; 57 class RenderObject;
57 class SharedBuffer; 58 class SharedBuffer;
58 class StyleResolver; 59 class StyleResolver;
59 class TextResourceDecoder; 60 class TextResourceDecoder;
60 61
61 typedef String ErrorString; 62 typedef String ErrorString;
62 63
63 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler { 64 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler {
64 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); 65 WTF_MAKE_NONCOPYABLE(InspectorPageAgent);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void didRecalculateStyle(int); 151 void didRecalculateStyle(int);
151 void scriptsEnabled(bool isEnabled); 152 void scriptsEnabled(bool isEnabled);
152 153
153 // Inspector Controller API 154 // Inspector Controller API
154 void setFrontend(InspectorFrontend*) override; 155 void setFrontend(InspectorFrontend*) override;
155 void clearFrontend() override; 156 void clearFrontend() override;
156 void restore() override; 157 void restore() override;
157 void discardAgent() override; 158 void discardAgent() override;
158 159
159 // Cross-agents API 160 // Cross-agents API
160 Page* page() { return m_page; } 161 FrameHost* frameHost();
161 LocalFrame* mainFrame(); 162 LocalFrame* inspectedFrame();
162 String createIdentifier(); 163 String createIdentifier();
163 LocalFrame* frameForId(const String& frameId); 164 LocalFrame* frameForId(const String& frameId);
164 String frameId(LocalFrame*); 165 String frameId(LocalFrame*);
165 bool hasIdForFrame(LocalFrame*) const; 166 bool hasIdForFrame(LocalFrame*) const;
166 String loaderId(DocumentLoader*); 167 String loaderId(DocumentLoader*);
167 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString); 168 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString);
168 LocalFrame* assertFrame(ErrorString*, const String& frameId); 169 LocalFrame* assertFrame(ErrorString*, const String& frameId);
169 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } 170 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; }
170 const AtomicString& resourceSourceMapURL(const String& url); 171 const AtomicString& resourceSourceMapURL(const String& url);
171 bool deviceMetricsOverrideEnabled(); 172 bool deviceMetricsOverrideEnabled();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 228
228 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; 229 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader;
229 HashMap<String, String> m_editedResourceContent; 230 HashMap<String, String> m_editedResourceContent;
230 }; 231 };
231 232
232 233
233 } // namespace blink 234 } // namespace blink
234 235
235 236
236 #endif // !defined(InspectorPagerAgent_h) 237 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorLayerTreeAgent.cpp ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698