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

Side by Side Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.h

Issue 2830753004: Pipe the devTools FrameId from blink into the browser for headless (Closed)
Patch Set: Add include for msvc Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 BlameContext* GetFrameBlameContext() override; 209 BlameContext* GetFrameBlameContext() override;
210 210
211 LinkResource* CreateServiceWorkerLinkResource(HTMLLinkElement*) override; 211 LinkResource* CreateServiceWorkerLinkResource(HTMLLinkElement*) override;
212 212
213 WebEffectiveConnectionType GetEffectiveConnectionType() override; 213 WebEffectiveConnectionType GetEffectiveConnectionType() override;
214 214
215 KURL OverrideFlashEmbedWithHTML(const KURL&) override; 215 KURL OverrideFlashEmbedWithHTML(const KURL&) override;
216 216
217 void SetHasReceivedUserGesture(bool received_previously) override; 217 void SetHasReceivedUserGesture(bool received_previously) override;
218 218
219 void SetDevToolsFrameId(const String& devtools_frame_id) override;
220
219 void AbortClientNavigation() override; 221 void AbortClientNavigation() override;
220 222
221 TextCheckerClient& GetTextCheckerClient() const override; 223 TextCheckerClient& GetTextCheckerClient() const override;
222 224
223 private: 225 private:
224 explicit LocalFrameClientImpl(WebLocalFrameImpl*); 226 explicit LocalFrameClientImpl(WebLocalFrameImpl*);
225 227
226 bool IsLocalFrameClientImpl() const override { return true; } 228 bool IsLocalFrameClientImpl() const override { return true; }
227 WebDevToolsAgentImpl* DevToolsAgent(); 229 WebDevToolsAgentImpl* DevToolsAgent();
228 230
229 // The WebFrame that owns this object and manages its lifetime. Therefore, 231 // The WebFrame that owns this object and manages its lifetime. Therefore,
230 // the web frame object is guaranteed to exist. 232 // the web frame object is guaranteed to exist.
231 Member<WebLocalFrameImpl> web_frame_; 233 Member<WebLocalFrameImpl> web_frame_;
232 234
233 String user_agent_; 235 String user_agent_;
234 }; 236 };
235 237
236 DEFINE_TYPE_CASTS(LocalFrameClientImpl, 238 DEFINE_TYPE_CASTS(LocalFrameClientImpl,
237 LocalFrameClient, 239 LocalFrameClient,
238 client, 240 client,
239 client->IsLocalFrameClientImpl(), 241 client->IsLocalFrameClientImpl(),
240 client.IsLocalFrameClientImpl()); 242 client.IsLocalFrameClientImpl());
241 243
242 } // namespace blink 244 } // namespace blink
243 245
244 #endif 246 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698