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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999-2001 Lars Knoll <knoll@kde.org> 3 * 1999-2001 Lars Knoll <knoll@kde.org>
4 * 1999-2001 Antti Koivisto <koivisto@kde.org> 4 * 1999-2001 Antti Koivisto <koivisto@kde.org>
5 * 2000-2001 Simon Hausmann <hausmann@kde.org> 5 * 2000-2001 Simon Hausmann <hausmann@kde.org>
6 * 2000-2001 Dirk Mueller <mueller@kde.org> 6 * 2000-2001 Dirk Mueller <mueller@kde.org>
7 * 2000 Stefan Schimanski <1Stein@gmx.de> 7 * 2000 Stefan Schimanski <1Stein@gmx.de>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
9 * reserved. 9 * reserved.
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 InterfaceProvider* const interface_provider_; 290 InterfaceProvider* const interface_provider_;
291 InterfaceRegistry* const interface_registry_; 291 InterfaceRegistry* const interface_registry_;
292 }; 292 };
293 293
294 inline FrameLoader& LocalFrame::Loader() const { 294 inline FrameLoader& LocalFrame::Loader() const {
295 return loader_; 295 return loader_;
296 } 296 }
297 297
298 inline NavigationScheduler& LocalFrame::GetNavigationScheduler() const { 298 inline NavigationScheduler& LocalFrame::GetNavigationScheduler() const {
299 ASSERT(navigation_scheduler_); 299 DCHECK(navigation_scheduler_);
300 return *navigation_scheduler_.Get(); 300 return *navigation_scheduler_.Get();
301 } 301 }
302 302
303 inline FrameView* LocalFrame::View() const { 303 inline FrameView* LocalFrame::View() const {
304 return view_.Get(); 304 return view_.Get();
305 } 305 }
306 306
307 inline ScriptController& LocalFrame::GetScriptController() const { 307 inline ScriptController& LocalFrame::GetScriptController() const {
308 return *script_controller_; 308 return *script_controller_;
309 } 309 }
(...skipping 20 matching lines...) Expand all
330 330
331 inline bool LocalFrame::InViewSourceMode() const { 331 inline bool LocalFrame::InViewSourceMode() const {
332 return in_view_source_mode_; 332 return in_view_source_mode_;
333 } 333 }
334 334
335 inline void LocalFrame::SetInViewSourceMode(bool mode) { 335 inline void LocalFrame::SetInViewSourceMode(bool mode) {
336 in_view_source_mode_ = mode; 336 in_view_source_mode_ = mode;
337 } 337 }
338 338
339 inline EventHandler& LocalFrame::GetEventHandler() const { 339 inline EventHandler& LocalFrame::GetEventHandler() const {
340 ASSERT(event_handler_); 340 DCHECK(event_handler_);
341 return *event_handler_; 341 return *event_handler_;
342 } 342 }
343 343
344 DEFINE_TYPE_CASTS(LocalFrame, 344 DEFINE_TYPE_CASTS(LocalFrame,
345 Frame, 345 Frame,
346 localFrame, 346 localFrame,
347 localFrame->IsLocalFrame(), 347 localFrame->IsLocalFrame(),
348 localFrame.IsLocalFrame()); 348 localFrame.IsLocalFrame());
349 349
350 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); 350 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 explicit ScopedFrameBlamer(LocalFrame*); 383 explicit ScopedFrameBlamer(LocalFrame*);
384 ~ScopedFrameBlamer(); 384 ~ScopedFrameBlamer();
385 385
386 private: 386 private:
387 Member<LocalFrame> frame_; 387 Member<LocalFrame> frame_;
388 }; 388 };
389 389
390 } // namespace blink 390 } // namespace blink
391 391
392 #endif // LocalFrame_h 392 #endif // LocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698