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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1467123003: Create base class for common functionality of Web{Local,Remote}Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: --no-find-copies Created 5 years 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #include "web/WebPluginContainerImpl.h" 101 #include "web/WebPluginContainerImpl.h"
102 #include "web/WebPluginLoadObserver.h" 102 #include "web/WebPluginLoadObserver.h"
103 #include "web/WebViewImpl.h" 103 #include "web/WebViewImpl.h"
104 #include "wtf/StringExtras.h" 104 #include "wtf/StringExtras.h"
105 #include "wtf/text/CString.h" 105 #include "wtf/text/CString.h"
106 #include "wtf/text/WTFString.h" 106 #include "wtf/text/WTFString.h"
107 #include <v8.h> 107 #include <v8.h>
108 108
109 namespace blink { 109 namespace blink {
110 110
111 namespace {
112
113 Frame* toCoreFrame(WebFrame* frame)
114 {
115 return frame ? frame->toImplBase()->frame() : nullptr;
dcheng 2015/11/23 09:00:17 Most locations that convert a WebFrame to a Frame
116 }
117
118 } // namespace
119
111 FrameLoaderClientImpl::FrameLoaderClientImpl(WebLocalFrameImpl* frame) 120 FrameLoaderClientImpl::FrameLoaderClientImpl(WebLocalFrameImpl* frame)
112 : m_webFrame(frame) 121 : m_webFrame(frame)
113 { 122 {
114 } 123 }
115 124
116 PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> FrameLoaderClientImpl::create(WebL ocalFrameImpl* frame) 125 PassOwnPtrWillBeRawPtr<FrameLoaderClientImpl> FrameLoaderClientImpl::create(WebL ocalFrameImpl* frame)
117 { 126 {
118 return adoptPtrWillBeNoop(new FrameLoaderClientImpl(frame)); 127 return adoptPtrWillBeNoop(new FrameLoaderClientImpl(frame));
119 } 128 }
120 129
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 994
986 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 995 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
987 { 996 {
988 if (m_webFrame->client()) { 997 if (m_webFrame->client()) {
989 m_webFrame->client()->suddenTerminationDisablerChanged( 998 m_webFrame->client()->suddenTerminationDisablerChanged(
990 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 999 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
991 } 1000 }
992 } 1001 }
993 1002
994 } // namespace blink 1003 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698