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

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

Issue 1092123004: DevTools: remove dependency of most agents on InspectorPageAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: further cuts on InspectorPageAgent inter-agents API Created 5 years, 8 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void didScroll(); 117 void didScroll();
118 void didResizeMainFrame(); 118 void didResizeMainFrame();
119 void didRecalculateStyle(int); 119 void didRecalculateStyle(int);
120 120
121 // Inspector Controller API 121 // Inspector Controller API
122 void disable(ErrorString*) override; 122 void disable(ErrorString*) override;
123 void restore() override; 123 void restore() override;
124 void discardAgent() override; 124 void discardAgent() override;
125 125
126 // Cross-agents API 126 // Cross-agents API
127 static DocumentLoader* assertDocumentLoader(ErrorString*, LocalFrame*);
128 LocalFrame* frameForId(const String& frameId);
129 LocalFrame* assertFrame(ErrorString*, const String& frameId);
130 FrameHost* frameHost();
131 LocalFrame* inspectedFrame() const { return m_inspectedFrame.get(); }
132 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString); 127 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString);
133 bool screencastEnabled(); 128 bool screencastEnabled();
134 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); } 129 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); }
135 130
136 DECLARE_VIRTUAL_TRACE(); 131 DECLARE_VIRTUAL_TRACE();
137 132
138 private: 133 private:
139 class GetResourceContentLoadListener; 134 class GetResourceContentLoadListener;
140 135
141 InspectorPageAgent(LocalFrame* inspectedFrame, InspectorOverlay*); 136 InspectorPageAgent(LocalFrame* inspectedFrame, InspectorOverlay*);
142 137
143 void finishReload(); 138 void finishReload();
144 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>); 139 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>);
140 LocalFrame* frameForId(const String& frameId);
141 LocalFrame* assertFrame(ErrorString*, const String& frameId);
145 142
146 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); 143 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result);
147 144
148 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); 145 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*);
149 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*); 146 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*);
150 RawPtrWillBeMember<LocalFrame> m_inspectedFrame; 147 RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
151 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 148 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
152 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; 149 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
153 RawPtrWillBeMember<InspectorOverlay> m_overlay; 150 RawPtrWillBeMember<InspectorOverlay> m_overlay;
154 long m_lastScriptIdentifier; 151 long m_lastScriptIdentifier;
155 String m_pendingScriptToEvaluateOnLoadOnce; 152 String m_pendingScriptToEvaluateOnLoadOnce;
156 String m_scriptToEvaluateOnLoadOnce; 153 String m_scriptToEvaluateOnLoadOnce;
157 bool m_enabled; 154 bool m_enabled;
158 bool m_reloading; 155 bool m_reloading;
159 156
160 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; 157 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader;
161 }; 158 };
162 159
163 160
164 } // namespace blink 161 } // namespace blink
165 162
166 163
167 #endif // !defined(InspectorPagerAgent_h) 164 #endif // !defined(InspectorPagerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698