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

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

Issue 2882853006: Move LocalFrameClientImpl to use WebLocalFrameBase instead of WebLocalFrameImpl. (Closed)
Patch Set: Created 3 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
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 25 matching lines...) Expand all
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
38 #include "platform/wtf/RefPtr.h" 38 #include "platform/wtf/RefPtr.h"
39 #include "public/platform/WebInsecureRequestPolicy.h" 39 #include "public/platform/WebInsecureRequestPolicy.h"
40 40
41 #include <memory> 41 #include <memory>
42 42
43 namespace blink { 43 namespace blink {
44 44
45 class WebDevToolsAgentImpl; 45 class WebDevToolsAgentImpl;
46 class WebLocalFrameImpl; 46 class WebLocalFrameBase;
47 47
48 class LocalFrameClientImpl final : public LocalFrameClient { 48 class LocalFrameClientImpl final : public LocalFrameClient {
49 public: 49 public:
50 static LocalFrameClientImpl* Create(WebLocalFrameImpl*); 50 static LocalFrameClientImpl* Create(WebLocalFrameBase*);
51 51
52 ~LocalFrameClientImpl() override; 52 ~LocalFrameClientImpl() override;
53 53
54 DECLARE_VIRTUAL_TRACE(); 54 DECLARE_VIRTUAL_TRACE();
55 55
56 WebLocalFrameImpl* GetWebFrame() const { return web_frame_.Get(); } 56 WebLocalFrameBase* GetWebFrame() const { return web_frame_.Get(); }
57 57
58 // LocalFrameClient ---------------------------------------------- 58 // LocalFrameClient ----------------------------------------------
59 59
60 void DidCreateNewDocument() override; 60 void DidCreateNewDocument() override;
61 // Notifies the WebView delegate that the JS window object has been cleared, 61 // Notifies the WebView delegate that the JS window object has been cleared,
62 // giving it a chance to bind native objects to the window before script 62 // giving it a chance to bind native objects to the window before script
63 // parsing begins. 63 // parsing begins.
64 void DispatchDidClearWindowObjectInMainWorld() override; 64 void DispatchDidClearWindowObjectInMainWorld() override;
65 void DocumentElementAvailable() override; 65 void DocumentElementAvailable() override;
66 void RunScriptsAtDocumentElementAvailable() override; 66 void RunScriptsAtDocumentElementAvailable() override;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 void SetHasReceivedUserGesture(bool received_previously) override; 221 void SetHasReceivedUserGesture(bool received_previously) override;
222 222
223 void SetDevToolsFrameId(const String& devtools_frame_id) override; 223 void SetDevToolsFrameId(const String& devtools_frame_id) override;
224 224
225 void AbortClientNavigation() override; 225 void AbortClientNavigation() override;
226 226
227 TextCheckerClient& GetTextCheckerClient() const override; 227 TextCheckerClient& GetTextCheckerClient() const override;
228 228
229 private: 229 private:
230 explicit LocalFrameClientImpl(WebLocalFrameImpl*); 230 explicit LocalFrameClientImpl(WebLocalFrameBase*);
231 231
232 bool IsLocalFrameClientImpl() const override { return true; } 232 bool IsLocalFrameClientImpl() const override { return true; }
233 WebDevToolsAgentImpl* DevToolsAgent(); 233 WebDevToolsAgentImpl* DevToolsAgent();
234 234
235 // The WebFrame that owns this object and manages its lifetime. Therefore, 235 // The WebFrame that owns this object and manages its lifetime. Therefore,
236 // the web frame object is guaranteed to exist. 236 // the web frame object is guaranteed to exist.
237 Member<WebLocalFrameImpl> web_frame_; 237 Member<WebLocalFrameBase> web_frame_;
238 238
239 String user_agent_; 239 String user_agent_;
240 }; 240 };
241 241
242 DEFINE_TYPE_CASTS(LocalFrameClientImpl, 242 DEFINE_TYPE_CASTS(LocalFrameClientImpl,
243 LocalFrameClient, 243 LocalFrameClient,
244 client, 244 client,
245 client->IsLocalFrameClientImpl(), 245 client->IsLocalFrameClientImpl(),
246 client.IsLocalFrameClientImpl()); 246 client.IsLocalFrameClientImpl());
247 247
248 } // namespace blink 248 } // namespace blink
249 249
250 #endif 250 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/WebLocalFrameBase.h ('k') | third_party/WebKit/Source/web/LocalFrameClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698