| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/inspector/InspectorBaseAgent.h" | 36 #include "core/inspector/InspectorBaseAgent.h" |
| 37 #include "core/inspector/InspectorResourceContentLoader.h" | 37 #include "core/inspector/InspectorResourceContentLoader.h" |
| 38 #include "wtf/HashMap.h" | 38 #include "wtf/HashMap.h" |
| 39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class Resource; | 43 class Resource; |
| 44 class Document; | 44 class Document; |
| 45 class DocumentLoader; | 45 class DocumentLoader; |
| 46 class FrameHost; | 46 class LocalFrame; |
| 47 class GraphicsContext; | 47 class GraphicsContext; |
| 48 class GraphicsLayer; | 48 class GraphicsLayer; |
| 49 class InjectedScriptManager; | 49 class InjectedScriptManager; |
| 50 class InspectorClient; | 50 class InspectorClient; |
| 51 class InspectorOverlay; | 51 class InspectorOverlay; |
| 52 class InspectorResourceContentLoader; | 52 class InspectorResourceContentLoader; |
| 53 class KURL; | 53 class KURL; |
| 54 class LayoutRect; | 54 class LayoutRect; |
| 55 class LocalFrame; | |
| 56 class Page; | 55 class Page; |
| 57 class RenderObject; | 56 class RenderObject; |
| 58 class SharedBuffer; | 57 class SharedBuffer; |
| 59 class StyleResolver; | 58 class StyleResolver; |
| 60 class TextResourceDecoder; | 59 class TextResourceDecoder; |
| 61 | 60 |
| 62 typedef String ErrorString; | 61 typedef String ErrorString; |
| 63 | 62 |
| 64 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>,
public InspectorBackendDispatcher::PageCommandHandler { | 63 class InspectorPageAgent final : public InspectorBaseAgent<InspectorPageAgent>,
public InspectorBackendDispatcher::PageCommandHandler { |
| 65 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); | 64 WTF_MAKE_NONCOPYABLE(InspectorPageAgent); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 void didRecalculateStyle(int); | 150 void didRecalculateStyle(int); |
| 152 void scriptsEnabled(bool isEnabled); | 151 void scriptsEnabled(bool isEnabled); |
| 153 | 152 |
| 154 // Inspector Controller API | 153 // Inspector Controller API |
| 155 void setFrontend(InspectorFrontend*) override; | 154 void setFrontend(InspectorFrontend*) override; |
| 156 void clearFrontend() override; | 155 void clearFrontend() override; |
| 157 void restore() override; | 156 void restore() override; |
| 158 void discardAgent() override; | 157 void discardAgent() override; |
| 159 | 158 |
| 160 // Cross-agents API | 159 // Cross-agents API |
| 161 FrameHost* frameHost(); | 160 Page* page() { return m_page; } |
| 162 LocalFrame* inspectedFrame(); | 161 LocalFrame* mainFrame(); |
| 163 String createIdentifier(); | 162 String createIdentifier(); |
| 164 LocalFrame* frameForId(const String& frameId); | 163 LocalFrame* frameForId(const String& frameId); |
| 165 String frameId(LocalFrame*); | 164 String frameId(LocalFrame*); |
| 166 bool hasIdForFrame(LocalFrame*) const; | 165 bool hasIdForFrame(LocalFrame*) const; |
| 167 String loaderId(DocumentLoader*); | 166 String loaderId(DocumentLoader*); |
| 168 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString); | 167 LocalFrame* findFrameWithSecurityOrigin(const String& originRawString); |
| 169 LocalFrame* assertFrame(ErrorString*, const String& frameId); | 168 LocalFrame* assertFrame(ErrorString*, const String& frameId); |
| 170 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } | 169 String scriptPreprocessorSource() { return m_scriptPreprocessorSource; } |
| 171 const AtomicString& resourceSourceMapURL(const String& url); | 170 const AtomicString& resourceSourceMapURL(const String& url); |
| 172 bool deviceMetricsOverrideEnabled(); | 171 bool deviceMetricsOverrideEnabled(); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 227 |
| 229 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; | 228 OwnPtrWillBeMember<InspectorResourceContentLoader> m_inspectorResourceConten
tLoader; |
| 230 HashMap<String, String> m_editedResourceContent; | 229 HashMap<String, String> m_editedResourceContent; |
| 231 }; | 230 }; |
| 232 | 231 |
| 233 | 232 |
| 234 } // namespace blink | 233 } // namespace blink |
| 235 | 234 |
| 236 | 235 |
| 237 #endif // !defined(InspectorPagerAgent_h) | 236 #endif // !defined(InspectorPagerAgent_h) |
| OLD | NEW |