Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 void didLayout(); | 116 void didLayout(); |
| 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 |
|
dgozman
2015/04/24 13:16:14
I thought all cross-agents methods are gone now.
caseq
2015/04/24 13:50:55
resourceContentLoader() is still used by CSS agent
| |
| 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* assertFrame(ErrorString*, const String& frameId); | |
| 145 | 141 |
| 146 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); | 142 static bool dataContent(const char* data, unsigned size, const String& textE ncodingName, bool withBase64Encode, String* result); |
| 147 | 143 |
| 148 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); | 144 PassRefPtr<TypeBuilder::Page::Frame> buildObjectForFrame(LocalFrame*); |
| 149 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*); | 145 PassRefPtr<TypeBuilder::Page::FrameResourceTree> buildObjectForFrameTree(Loc alFrame*); |
| 150 RawPtrWillBeMember<LocalFrame> m_inspectedFrame; | 146 RawPtrWillBeMember<LocalFrame> m_inspectedFrame; |
| 151 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 147 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
| 152 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 148 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
| 153 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 149 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
| 154 long m_lastScriptIdentifier; | 150 long m_lastScriptIdentifier; |
| 155 String m_pendingScriptToEvaluateOnLoadOnce; | 151 String m_pendingScriptToEvaluateOnLoadOnce; |
| 156 String m_scriptToEvaluateOnLoadOnce; | 152 String m_scriptToEvaluateOnLoadOnce; |
| 157 bool m_enabled; | 153 bool m_enabled; |
| 158 bool m_reloading; | 154 bool m_reloading; |
| 159 | 155 |
| 160 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; | 156 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten tLoader; |
| 161 }; | 157 }; |
| 162 | 158 |
| 163 | 159 |
| 164 } // namespace blink | 160 } // namespace blink |
| 165 | 161 |
| 166 | 162 |
| 167 #endif // !defined(InspectorPagerAgent_h) | 163 #endif // !defined(InspectorPagerAgent_h) |
| OLD | NEW |