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

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

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