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

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: fixed debug build Created 5 years, 7 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);
133 bool screencastEnabled(); 127 bool screencastEnabled();
134 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); } 128 InspectorResourceContentLoader* resourceContentLoader() { return m_inspector ResourceContentLoader.get(); }
135 129
136 DECLARE_VIRTUAL_TRACE(); 130 DECLARE_VIRTUAL_TRACE();
137 131
138 private: 132 private:
139 class GetResourceContentLoadListener; 133 class GetResourceContentLoadListener;
140 134
141 InspectorPageAgent(LocalFrame* inspectedFrame, InspectorOverlay*); 135 InspectorPageAgent(LocalFrame* inspectedFrame, InspectorOverlay*);
142 136
143 void finishReload(); 137 void finishReload();
144 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>); 138 void getResourceContentAfterResourcesContentLoaded(const String& frameId, co nst String& url, PassRefPtrWillBeRawPtr<GetResourceContentCallback>);
139 LocalFrame* assertFrame(ErrorString*, const String& frameId);
145 140
146 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); 141 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result);
147 142
148 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); 143 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*);
149 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*); 144 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*);
150 RawPtrWillBeMember<LocalFrame> m_inspectedFrame; 145 RawPtrWillBeMember<LocalFrame> m_inspectedFrame;
151 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; 146 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
152 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; 147 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
153 RawPtrWillBeMember<InspectorOverlay> m_overlay; 148 RawPtrWillBeMember<InspectorOverlay> m_overlay;
154 long m_lastScriptIdentifier; 149 long m_lastScriptIdentifier;
155 String m_pendingScriptToEvaluateOnLoadOnce; 150 String m_pendingScriptToEvaluateOnLoadOnce;
156 String m_scriptToEvaluateOnLoadOnce; 151 String m_scriptToEvaluateOnLoadOnce;
157 bool m_enabled; 152 bool m_enabled;
158 bool m_reloading; 153 bool m_reloading;
159 154
160 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; 155 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader;
161 }; 156 };
162 157
163 158
164 } // namespace blink 159 } // namespace blink
165 160
166 161
167 #endif // !defined(InspectorPagerAgent_h) 162 #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