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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ImageResource, 71 ImageResource,
72 FontResource, 72 FontResource,
73 MediaResource, 73 MediaResource,
74 ScriptResource, 74 ScriptResource,
75 TextTrackResource, 75 TextTrackResource,
76 XHRResource, 76 XHRResource,
77 WebSocketResource, 77 WebSocketResource,
78 OtherResource 78 OtherResource
79 }; 79 };
80 80
81 static PassOwnPtr<InspectorPageAgent> create(Page*, InjectedScriptManager*, InspectorClient*, InspectorOverlay*); 81 static PassOwnPtrWillBeRawPtr<InspectorPageAgent> create(Page*, InjectedScri ptManager*, InspectorClient*, InspectorOverlay*);
82 82
83 // Settings overrides. 83 // Settings overrides.
84 void setTextAutosizingEnabled(bool); 84 void setTextAutosizingEnabled(bool);
85 void setDeviceScaleAdjustment(float); 85 void setDeviceScaleAdjustment(float);
86 86
87 static Vector<Document*> importsForFrame(LocalFrame*); 87 static Vector<Document*> importsForFrame(LocalFrame*);
88 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc oded); 88 static bool cachedResourceContent(Resource*, String* result, bool* base64Enc oded);
89 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result); 89 static bool sharedBufferContent(PassRefPtr<SharedBuffer>, const String& text EncodingName, bool withBase64Encode, String* result);
90 90
91 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin g* textEncodingName); 91 static PassRefPtr<SharedBuffer> resourceData(LocalFrame*, const KURL&, Strin g* textEncodingName);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } 163 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; }
164 const AtomicString& resourceSourceMapURL(const String& url); 164 const AtomicString& resourceSourceMapURL(const String& url);
165 bool deviceMetricsOverrideEnabled(); 165 bool deviceMetricsOverrideEnabled();
166 void deviceOrPageScaleFactorChanged(); 166 void deviceOrPageScaleFactorChanged();
167 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); 167 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*);
168 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); } 168 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); }
169 void clearEditedResourcesContent(); 169 void clearEditedResourcesContent();
170 void addEditedResourceContent(const String& url, const String& content); 170 void addEditedResourceContent(const String& url, const String& content);
171 bool getEditedResourceContent(const String& url, String* content); 171 bool getEditedResourceContent(const String& url, String* content);
172 172
173 virtual void trace(Visitor*) OVERRIDE;
174
173 private: 175 private:
174 class GetResourceContentLoadListener; 176 class GetResourceContentLoadListener;
175 177
176 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto rOverlay*); 178 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto rOverlay*);
177 bool deviceMetricsChanged(bool enabled, int width, int height, double device ScaleFactor, bool mobile, bool fitWindow, double scale, double offsetX, double o ffsetY); 179 bool deviceMetricsChanged(bool enabled, int width, int height, double device ScaleFactor, bool mobile, bool fitWindow, double scale, double offsetX, double o ffsetY);
178 void updateViewMetricsFromState(); 180 void updateViewMetricsFromState();
179 void updateViewMetrics(bool enabled, int width, int height, double deviceSca leFactor, bool mobile, bool fitWindow, double scale, double offsetX, double offs etY); 181 void updateViewMetrics(bool enabled, int width, int height, double deviceSca leFactor, bool mobile, bool fitWindow, double scale, double offsetX, double offs etY);
180 void updateTouchEventEmulationInPage(bool); 182 void updateTouchEventEmulationInPage(bool);
181 bool compositingEnabled(ErrorString*); 183 bool compositingEnabled(ErrorString*);
182 184
183 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtr<GetResourceContentCallback>); 185 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtr<GetResourceContentCallback>);
184 186
185 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); 187 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result);
186 188
187 void viewportChanged(); 189 void viewportChanged();
188 190
189 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); 191 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*);
190 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*); 192 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*);
191 Page* m_page; 193 RawPtrWillBeMember<Page> m_page;
194 // FIXME: Oilpan: Move InjectedScriptManager to heap in follow-up CL.
192 InjectedScriptManager* m_injectedScriptManager; 195 InjectedScriptManager* m_injectedScriptManager;
193 InspectorClient* m_client; 196 InspectorClient* m_client;
194 InspectorFrontend::Page* m_frontend; 197 InspectorFrontend::Page* m_frontend;
195 InspectorOverlay* m_overlay; 198 InspectorOverlay* m_overlay;
196 long m_lastScriptIdentifier; 199 long m_lastScriptIdentifier;
197 String m_pendingScriptToEvaluateOnLoadOnce; 200 String m_pendingScriptToEvaluateOnLoadOnce;
198 String m_scriptToEvaluateOnLoadOnce; 201 String m_scriptToEvaluateOnLoadOnce;
199 String m_pendingScriptPreprocessor; 202 String m_pendingScriptPreprocessor;
200 String m_scriptPreprocessorSource; 203 String m_scriptPreprocessorSource;
201 HashMap<LocalFrame*, String> m_frameToIdentifier; 204 HashMap<LocalFrame*, String> m_frameToIdentifier;
(...skipping 14 matching lines...) Expand all
216 219
217 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader; 220 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader;
218 HashMap<String, String> m_editedResourceContent; 221 HashMap<String, String> m_editedResourceContent;
219 }; 222 };
220 223
221 224
222 } // namespace blink 225 } // namespace blink
223 226
224 227
225 #endif // !defined(InspectorPagerAgent_h) 228 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorMemoryAgent.h ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698