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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 2601763002: WebFrame cleanup: Move addMessageToConsole to WebLocalFrame (Closed)
Patch Set: Created 3 years, 11 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 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class WebLocalFrame; 63 class WebLocalFrame;
64 class WebPerformance; 64 class WebPerformance;
65 class WebRemoteFrame; 65 class WebRemoteFrame;
66 class WebSecurityOrigin; 66 class WebSecurityOrigin;
67 class WebSharedWorkerRepositoryClient; 67 class WebSharedWorkerRepositoryClient;
68 class WebString; 68 class WebString;
69 class WebURL; 69 class WebURL;
70 class WebURLRequest; 70 class WebURLRequest;
71 class WebView; 71 class WebView;
72 enum class WebSandboxFlags; 72 enum class WebSandboxFlags;
73 struct WebConsoleMessage;
74 struct WebFrameOwnerProperties; 73 struct WebFrameOwnerProperties;
75 struct WebPrintParams; 74 struct WebPrintParams;
76 struct WebRect; 75 struct WebRect;
77 struct WebScriptSource; 76 struct WebScriptSource;
78 struct WebSize; 77 struct WebSize;
79 78
80 template <typename T> 79 template <typename T>
81 class WebVector; 80 class WebVector;
82 81
83 // Frames may be rendered in process ('local') or out of process ('remote'). 82 // Frames may be rendered in process ('local') or out of process ('remote').
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Associates a content security policy with an isolated world. This policy 264 // Associates a content security policy with an isolated world. This policy
266 // should be used when evaluating script in the isolated world, and should 265 // should be used when evaluating script in the isolated world, and should
267 // also replace a protected resource's CSP when evaluating resources 266 // also replace a protected resource's CSP when evaluating resources
268 // injected into the DOM. 267 // injected into the DOM.
269 // 268 //
270 // FIXME: Setting this simply bypasses the protected resource's CSP. It 269 // FIXME: Setting this simply bypasses the protected resource's CSP. It
271 // doesn't yet restrict the isolated world to the provided policy. 270 // doesn't yet restrict the isolated world to the provided policy.
272 virtual void setIsolatedWorldContentSecurityPolicy(int worldID, 271 virtual void setIsolatedWorldContentSecurityPolicy(int worldID,
273 const WebString&) = 0; 272 const WebString&) = 0;
274 273
275 // Logs to the console associated with this frame.
276 virtual void addMessageToConsole(const WebConsoleMessage&) = 0;
277
278 // Calls window.gc() if it is defined. 274 // Calls window.gc() if it is defined.
279 virtual void collectGarbage() = 0; 275 virtual void collectGarbage() = 0;
280 276
281 // Executes script in the context of the current page and returns the value 277 // Executes script in the context of the current page and returns the value
282 // that the script evaluated to. 278 // that the script evaluated to.
283 // DEPRECATED: Use WebLocalFrame::requestExecuteScriptAndReturnValue. 279 // DEPRECATED: Use WebLocalFrame::requestExecuteScriptAndReturnValue.
284 virtual v8::Local<v8::Value> executeScriptAndReturnValue( 280 virtual v8::Local<v8::Value> executeScriptAndReturnValue(
285 const WebScriptSource&) = 0; 281 const WebScriptSource&) = 0;
286 282
287 // worldID must be > 0 (as 0 represents the main world). 283 // worldID must be > 0 (as 0 represents the main world).
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 WebFrame* m_firstChild; 484 WebFrame* m_firstChild;
489 WebFrame* m_lastChild; 485 WebFrame* m_lastChild;
490 486
491 WebFrame* m_opener; 487 WebFrame* m_opener;
492 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker; 488 std::unique_ptr<OpenedFrameTracker> m_openedFrameTracker;
493 }; 489 };
494 490
495 } // namespace blink 491 } // namespace blink
496 492
497 #endif 493 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698