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

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

Issue 16841010: Inspector: Removed unused references to InspectorAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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) 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include <wtf/Vector.h> 42 #include <wtf/Vector.h>
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 class CachedResource; 46 class CachedResource;
47 class DOMWrapperWorld; 47 class DOMWrapperWorld;
48 class DocumentLoader; 48 class DocumentLoader;
49 class Frame; 49 class Frame;
50 class GraphicsContext; 50 class GraphicsContext;
51 class InjectedScriptManager; 51 class InjectedScriptManager;
52 class InspectorAgent;
53 class InspectorClient; 52 class InspectorClient;
54 class InspectorOverlay; 53 class InspectorOverlay;
55 class InstrumentingAgents; 54 class InstrumentingAgents;
56 class IntSize; 55 class IntSize;
57 class KURL; 56 class KURL;
58 class LayoutRect; 57 class LayoutRect;
59 class Page; 58 class Page;
60 class RenderObject; 59 class RenderObject;
61 class SharedBuffer; 60 class SharedBuffer;
62 61
63 typedef String ErrorString; 62 typedef String ErrorString;
64 63
65 class InspectorPageAgent : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler { 64 class InspectorPageAgent : public InspectorBaseAgent<InspectorPageAgent>, public InspectorBackendDispatcher::PageCommandHandler {
66 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); 65 WTF_MAKE_NONCOPYABLE(InspectorPageAgent);
67 public: 66 public:
68 enum ResourceType { 67 enum ResourceType {
69 DocumentResource, 68 DocumentResource,
70 StylesheetResource, 69 StylesheetResource,
71 ImageResource, 70 ImageResource,
72 FontResource, 71 FontResource,
73 ScriptResource, 72 ScriptResource,
74 XHRResource, 73 XHRResource,
75 WebSocketResource, 74 WebSocketResource,
76 OtherResource 75 OtherResource
77 }; 76 };
78 77
79 static PassOwnPtr<InspectorPageAgent> create(InstrumentingAgents*, Page*, In spectorAgent*, InspectorCompositeState*, InjectedScriptManager*, InspectorClient *, InspectorOverlay*); 78 static PassOwnPtr<InspectorPageAgent> create(InstrumentingAgents*, Page*, In spectorCompositeState*, InjectedScriptManager*, InspectorClient*, InspectorOverl ay*);
80 79
81 static bool cachedResourceContent(CachedResource*, String* result, bool* bas e64Encoded); 80 static bool cachedResourceContent(CachedResource*, String* result, bool* bas e64Encoded);
82 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result); 81 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result);
83 static void resourceContent(ErrorString*, Frame*, const KURL&, String* resul t, bool* base64Encoded); 82 static void resourceContent(ErrorString*, Frame*, const KURL&, String* resul t, bool* base64Encoded);
84 83
85 static PassRefPtr<SharedBuffer> resourceData(Frame*, const KURL&, String* te xtEncodingName); 84 static PassRefPtr<SharedBuffer> resourceData(Frame*, const KURL&, String* te xtEncodingName);
86 static CachedResource* cachedResource(Frame*, const KURL&); 85 static CachedResource* cachedResource(Frame*, const KURL&);
87 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType); 86 static TypeBuilder::Page::ResourceType::Enum resourceTypeJson(ResourceType);
88 static ResourceType cachedResourceType(const CachedResource&); 87 static ResourceType cachedResourceType(const CachedResource&);
89 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Ca chedResource&); 88 static TypeBuilder::Page::ResourceType::Enum cachedResourceTypeJson(const Ca chedResource&);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 String frameId(Frame*); 167 String frameId(Frame*);
169 bool hasIdForFrame(Frame*) const; 168 bool hasIdForFrame(Frame*) const;
170 String loaderId(DocumentLoader*); 169 String loaderId(DocumentLoader*);
171 Frame* findFrameWithSecurityOrigin(const String& originRawString); 170 Frame* findFrameWithSecurityOrigin(const String& originRawString);
172 Frame* assertFrame(ErrorString*, const String& frameId); 171 Frame* assertFrame(ErrorString*, const String& frameId);
173 String scriptPreprocessor() { return m_scriptPreprocessor; } 172 String scriptPreprocessor() { return m_scriptPreprocessor; }
174 String resourceSourceMapURL(const String& url); 173 String resourceSourceMapURL(const String& url);
175 static DocumentLoader* assertDocumentLoader(ErrorString*, Frame*); 174 static DocumentLoader* assertDocumentLoader(ErrorString*, Frame*);
176 175
177 private: 176 private:
178 InspectorPageAgent(InstrumentingAgents*, Page*, InspectorAgent*, InspectorCo mpositeState*, InjectedScriptManager*, InspectorClient*, InspectorOverlay*); 177 InspectorPageAgent(InstrumentingAgents*, Page*, InspectorCompositeState*, In jectedScriptManager*, InspectorClient*, InspectorOverlay*);
179 bool deviceMetricsChanged(int width, int height, double fontScaleFactor, boo l fitWindow); 178 bool deviceMetricsChanged(int width, int height, double fontScaleFactor, boo l fitWindow);
180 void updateViewMetrics(int, int, double, bool); 179 void updateViewMetrics(int, int, double, bool);
181 void updateTouchEventEmulationInPage(bool); 180 void updateTouchEventEmulationInPage(bool);
182 181
183 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); 182 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result);
184 183
185 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(Frame*); 184 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(Frame*);
186 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Fra me*); 185 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Fra me*);
187 Page* m_page; 186 Page* m_page;
188 InspectorAgent* m_inspectorAgent;
189 InjectedScriptManager* m_injectedScriptManager; 187 InjectedScriptManager* m_injectedScriptManager;
190 InspectorClient* m_client; 188 InspectorClient* m_client;
191 InspectorFrontend::Page* m_frontend; 189 InspectorFrontend::Page* m_frontend;
192 InspectorOverlay* m_overlay; 190 InspectorOverlay* m_overlay;
193 long m_lastScriptIdentifier; 191 long m_lastScriptIdentifier;
194 String m_pendingScriptToEvaluateOnLoadOnce; 192 String m_pendingScriptToEvaluateOnLoadOnce;
195 String m_scriptToEvaluateOnLoadOnce; 193 String m_scriptToEvaluateOnLoadOnce;
196 String m_pendingScriptPreprocessor; 194 String m_pendingScriptPreprocessor;
197 String m_scriptPreprocessor; 195 String m_scriptPreprocessor;
198 HashMap<Frame*, String> m_frameToIdentifier; 196 HashMap<Frame*, String> m_frameToIdentifier;
199 HashMap<String, Frame*> m_identifierToFrame; 197 HashMap<String, Frame*> m_identifierToFrame;
200 HashMap<DocumentLoader*, String> m_loaderToIdentifier; 198 HashMap<DocumentLoader*, String> m_loaderToIdentifier;
201 bool m_enabled; 199 bool m_enabled;
202 bool m_isFirstLayoutAfterOnLoad; 200 bool m_isFirstLayoutAfterOnLoad;
203 bool m_geolocationOverridden; 201 bool m_geolocationOverridden;
204 bool m_ignoreScriptsEnabledNotification; 202 bool m_ignoreScriptsEnabledNotification;
205 bool m_didForceCompositingMode; 203 bool m_didForceCompositingMode;
206 RefPtr<GeolocationPosition> m_geolocationPosition; 204 RefPtr<GeolocationPosition> m_geolocationPosition;
207 RefPtr<GeolocationPosition> m_platformGeolocationPosition; 205 RefPtr<GeolocationPosition> m_platformGeolocationPosition;
208 RefPtr<DeviceOrientationData> m_deviceOrientation; 206 RefPtr<DeviceOrientationData> m_deviceOrientation;
209 }; 207 };
210 208
211 209
212 } // namespace WebCore 210 } // namespace WebCore
213 211
214 212
215 #endif // !defined(InspectorPagerAgent_h) 213 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMDebuggerAgent.cpp ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698