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

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, 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 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 bool hasIdForFrame(LocalFrame*) const; 158 bool hasIdForFrame(LocalFrame*) const;
159 String loaderId(DocumentLoader*); 159 String loaderId(DocumentLoader*);
160 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString); 160 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString);
161 LocalFrame* assertFrame(ErrorString*, const String& frameId); 161 LocalFrame* assertFrame(ErrorString*, const String& frameId);
162 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } 162 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; }
163 const AtomicString& resourceSourceMapURL(const String& url); 163 const AtomicString& resourceSourceMapURL(const String& url);
164 bool deviceMetricsOverrideEnabled(); 164 bool deviceMetricsOverrideEnabled();
165 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*); 165 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*);
166 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); } 166 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); }
167 167
168 virtual void trace(Visitor*) OVERRIDE;
169
168 private: 170 private:
169 static void resourceContent(ErrorString*, LocalFrame*, const KURL&, String* result, bool* base64Encoded); 171 static void resourceContent(ErrorString*, LocalFrame*, const KURL&, String* result, bool* base64Encoded);
170 172
171 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto rOverlay*); 173 InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, Inspecto rOverlay*);
172 bool deviceMetricsChanged(bool enabled, int width, int height, double device ScaleFactor, bool emulateViewport, bool fitWindow, double fontScaleFactor, bool textAutosizing); 174 bool deviceMetricsChanged(bool enabled, int width, int height, double device ScaleFactor, bool emulateViewport, bool fitWindow, double fontScaleFactor, bool textAutosizing);
173 void updateViewMetricsFromState(); 175 void updateViewMetricsFromState();
174 void updateViewMetrics(bool enabled, int width, int height, double deviceSca leFactor, bool emulateViewport, bool fitWindow, double fontScaleFactor, bool tex tAutosizingEnabled); 176 void updateViewMetrics(bool enabled, int width, int height, double deviceSca leFactor, bool emulateViewport, bool fitWindow, double fontScaleFactor, bool tex tAutosizingEnabled);
175 void updateTouchEventEmulationInPage(bool); 177 void updateTouchEventEmulationInPage(bool);
176 bool compositingEnabled(ErrorString*); 178 bool compositingEnabled(ErrorString*);
177 179
178 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); 180 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result);
179 181
180 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); 182 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*);
181 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*); 183 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*);
182 Page* m_page; 184 RawPtrWillBeMember<Page> m_page;
185 // FIXME: Oilpan: Move InjectedScriptManager to heap in follow-up CL.
183 InjectedScriptManager* m_injectedScriptManager; 186 InjectedScriptManager* m_injectedScriptManager;
184 InspectorClient* m_client; 187 InspectorClient* m_client;
185 InspectorFrontend::Page* m_frontend; 188 InspectorFrontend::Page* m_frontend;
186 InspectorOverlay* m_overlay; 189 InspectorOverlay* m_overlay;
187 long m_lastScriptIdentifier; 190 long m_lastScriptIdentifier;
188 String m_pendingScriptToEvaluateOnLoadOnce; 191 String m_pendingScriptToEvaluateOnLoadOnce;
189 String m_scriptToEvaluateOnLoadOnce; 192 String m_scriptToEvaluateOnLoadOnce;
190 String m_pendingScriptPreprocessor; 193 String m_pendingScriptPreprocessor;
191 String m_scriptPreprocessorSource; 194 String m_scriptPreprocessorSource;
192 HashMap<LocalFrame*, String> m_frameToIdentifier; 195 HashMap<LocalFrame*, String> m_frameToIdentifier;
(...skipping 13 matching lines...) Expand all
206 double m_embedderFontScaleFactor; 209 double m_embedderFontScaleFactor;
207 210
208 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader; 211 OwnPtr<InspectorResourceContentLoader> m_inspectorResourceContentLoader;
209 }; 212 };
210 213
211 214
212 } // namespace WebCore 215 } // namespace WebCore
213 216
214 217
215 #endif // !defined(InspectorPagerAgent_h) 218 #endif // !defined(InspectorPagerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698