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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const String& textEncodingName, | 96 const String& textEncodingName, |
97 String* result, | 97 String* result, |
98 bool* base64Encoded); | 98 bool* base64Encoded); |
99 | 99 |
100 static Resource* cachedResource(LocalFrame*, const KURL&); | 100 static Resource* cachedResource(LocalFrame*, const KURL&); |
101 static String resourceTypeJson(ResourceType); | 101 static String resourceTypeJson(ResourceType); |
102 static ResourceType cachedResourceType(const Resource&); | 102 static ResourceType cachedResourceType(const Resource&); |
103 static String cachedResourceTypeJson(const Resource&); | 103 static String cachedResourceTypeJson(const Resource&); |
104 | 104 |
105 // Page API for frontend | 105 // Page API for frontend |
106 void enable(ErrorString*) override; | 106 Response enable() override; |
107 void disable(ErrorString*) override; | 107 Response disable() override; |
108 void addScriptToEvaluateOnLoad(ErrorString*, | 108 Response addScriptToEvaluateOnLoad(const String& scriptSource, |
109 const String& scriptSource, | 109 String* identifier) override; |
110 String* identifier) override; | 110 Response removeScriptToEvaluateOnLoad(const String& identifier) override; |
111 void removeScriptToEvaluateOnLoad(ErrorString*, | 111 Response setAutoAttachToCreatedPages(bool) override; |
112 const String& identifier) override; | 112 Response reload(Maybe<bool> bypassCache, |
113 void setAutoAttachToCreatedPages(ErrorString*, bool autoAttach) override; | 113 Maybe<String> scriptToEvaluateOnLoad) override; |
114 void reload(ErrorString*, | 114 Response navigate(const String& url, String* frameId) override; |
115 const Maybe<bool>& bypassCache, | 115 Response getResourceTree( |
116 const Maybe<String>& scriptToEvaluateOnLoad) override; | |
117 void navigate(ErrorString*, const String& url, String* frameId) override; | |
118 void getResourceTree( | |
119 ErrorString*, | |
120 std::unique_ptr<protocol::Page::FrameResourceTree>* frameTree) override; | 116 std::unique_ptr<protocol::Page::FrameResourceTree>* frameTree) override; |
121 void getResourceContent(const String& frameId, | 117 void getResourceContent(const String& frameId, |
122 const String& url, | 118 const String& url, |
123 std::unique_ptr<GetResourceContentCallback>) override; | 119 std::unique_ptr<GetResourceContentCallback>) override; |
124 void searchInResource(const String& frameId, | 120 void searchInResource(const String& frameId, |
125 const String& url, | 121 const String& url, |
126 const String& query, | 122 const String& query, |
127 const Maybe<bool>& caseSensitive, | 123 Maybe<bool> caseSensitive, |
128 const Maybe<bool>& isRegex, | 124 Maybe<bool> isRegex, |
129 std::unique_ptr<SearchInResourceCallback>) override; | 125 std::unique_ptr<SearchInResourceCallback>) override; |
130 void setDocumentContent(ErrorString*, | 126 Response setDocumentContent(const String& frameId, |
131 const String& frameId, | 127 const String& html) override; |
132 const String& html) override; | 128 Response startScreencast(Maybe<String> format, |
133 void startScreencast(ErrorString*, | 129 Maybe<int> quality, |
134 const Maybe<String>& format, | 130 Maybe<int> maxWidth, |
135 const Maybe<int>& quality, | 131 Maybe<int> maxHeight, |
136 const Maybe<int>& maxWidth, | 132 Maybe<int> everyNthFrame) override; |
137 const Maybe<int>& maxHeight, | 133 Response stopScreencast() override; |
138 const Maybe<int>& everyNthFrame) override; | 134 Response configureOverlay(Maybe<bool> suspended, |
139 void stopScreencast(ErrorString*) override; | 135 Maybe<String> message) override; |
140 void configureOverlay(ErrorString*, | 136 Response setBlockedEventsWarningThreshold(double) override; |
141 const Maybe<bool>& suspended, | 137 Response getLayoutMetrics( |
142 const Maybe<String>& message) override; | |
143 void setBlockedEventsWarningThreshold(ErrorString*, | |
144 double threshold) override; | |
145 void getLayoutMetrics( | |
146 ErrorString*, | |
147 std::unique_ptr<protocol::Page::LayoutViewport>*, | 138 std::unique_ptr<protocol::Page::LayoutViewport>*, |
148 std::unique_ptr<protocol::Page::VisualViewport>*) override; | 139 std::unique_ptr<protocol::Page::VisualViewport>*) override; |
149 | 140 |
150 // InspectorInstrumentation API | 141 // InspectorInstrumentation API |
151 void didClearDocumentOfWindowObject(LocalFrame*); | 142 void didClearDocumentOfWindowObject(LocalFrame*); |
152 void domContentLoadedEventFired(LocalFrame*); | 143 void domContentLoadedEventFired(LocalFrame*); |
153 void loadEventFired(LocalFrame*); | 144 void loadEventFired(LocalFrame*); |
154 void didCommitLoad(LocalFrame*, DocumentLoader*); | 145 void didCommitLoad(LocalFrame*, DocumentLoader*); |
155 void frameAttachedToParent(LocalFrame*); | 146 void frameAttachedToParent(LocalFrame*); |
156 void frameDetachedFromParent(LocalFrame*); | 147 void frameDetachedFromParent(LocalFrame*); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 String m_scriptToEvaluateOnLoadOnce; | 198 String m_scriptToEvaluateOnLoadOnce; |
208 bool m_enabled; | 199 bool m_enabled; |
209 bool m_reloading; | 200 bool m_reloading; |
210 Member<InspectorResourceContentLoader> m_inspectorResourceContentLoader; | 201 Member<InspectorResourceContentLoader> m_inspectorResourceContentLoader; |
211 int m_resourceContentLoaderClientId; | 202 int m_resourceContentLoaderClientId; |
212 }; | 203 }; |
213 | 204 |
214 } // namespace blink | 205 } // namespace blink |
215 | 206 |
216 #endif // !defined(InspectorPagerAgent_h) | 207 #endif // !defined(InspectorPagerAgent_h) |
OLD | NEW |