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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1314643002: Plugins: Remove Shadow DOM Plugin Placeholder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 #include "third_party/WebKit/public/web/WebColorSuggestion.h" 128 #include "third_party/WebKit/public/web/WebColorSuggestion.h"
129 #include "third_party/WebKit/public/web/WebDocument.h" 129 #include "third_party/WebKit/public/web/WebDocument.h"
130 #include "third_party/WebKit/public/web/WebFrameWidget.h" 130 #include "third_party/WebKit/public/web/WebFrameWidget.h"
131 #include "third_party/WebKit/public/web/WebGlyphCache.h" 131 #include "third_party/WebKit/public/web/WebGlyphCache.h"
132 #include "third_party/WebKit/public/web/WebKit.h" 132 #include "third_party/WebKit/public/web/WebKit.h"
133 #include "third_party/WebKit/public/web/WebLocalFrame.h" 133 #include "third_party/WebKit/public/web/WebLocalFrame.h"
134 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" 134 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h"
135 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 135 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
136 #include "third_party/WebKit/public/web/WebPlugin.h" 136 #include "third_party/WebKit/public/web/WebPlugin.h"
137 #include "third_party/WebKit/public/web/WebPluginParams.h" 137 #include "third_party/WebKit/public/web/WebPluginParams.h"
138 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h"
139 #include "third_party/WebKit/public/web/WebRange.h" 138 #include "third_party/WebKit/public/web/WebRange.h"
140 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" 139 #include "third_party/WebKit/public/web/WebScopedUserGesture.h"
141 #include "third_party/WebKit/public/web/WebScriptSource.h" 140 #include "third_party/WebKit/public/web/WebScriptSource.h"
142 #include "third_party/WebKit/public/web/WebSearchableFormData.h" 141 #include "third_party/WebKit/public/web/WebSearchableFormData.h"
143 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" 142 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
144 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" 143 #include "third_party/WebKit/public/web/WebSecurityPolicy.h"
145 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h" 144 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h"
146 #include "third_party/WebKit/public/web/WebSettings.h" 145 #include "third_party/WebKit/public/web/WebSettings.h"
147 #include "third_party/WebKit/public/web/WebSurroundingText.h" 146 #include "third_party/WebKit/public/web/WebSurroundingText.h"
148 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" 147 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
(...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 } 1951 }
1953 1952
1954 void RenderFrameImpl::AddMessageToConsole(ConsoleMessageLevel level, 1953 void RenderFrameImpl::AddMessageToConsole(ConsoleMessageLevel level,
1955 const std::string& message) { 1954 const std::string& message) {
1956 if (devtools_agent_) 1955 if (devtools_agent_)
1957 devtools_agent_->AddMessageToConsole(level, message); 1956 devtools_agent_->AddMessageToConsole(level, message);
1958 } 1957 }
1959 1958
1960 // blink::WebFrameClient implementation ---------------------------------------- 1959 // blink::WebFrameClient implementation ----------------------------------------
1961 1960
1962 blink::WebPluginPlaceholder* RenderFrameImpl::createPluginPlaceholder(
1963 blink::WebLocalFrame* frame,
1964 const blink::WebPluginParams& params) {
1965 DCHECK_EQ(frame_, frame);
1966 return GetContentClient()
1967 ->renderer()
1968 ->CreatePluginPlaceholder(this, frame, params)
1969 .release();
1970 }
1971
1972 blink::WebPlugin* RenderFrameImpl::createPlugin( 1961 blink::WebPlugin* RenderFrameImpl::createPlugin(
1973 blink::WebLocalFrame* frame, 1962 blink::WebLocalFrame* frame,
1974 const blink::WebPluginParams& params) { 1963 const blink::WebPluginParams& params) {
1975 DCHECK_EQ(frame_, frame); 1964 DCHECK_EQ(frame_, frame);
1976 blink::WebPlugin* plugin = NULL; 1965 blink::WebPlugin* plugin = NULL;
1977 if (GetContentClient()->renderer()->OverrideCreatePlugin( 1966 if (GetContentClient()->renderer()->OverrideCreatePlugin(
1978 this, frame, params, &plugin)) { 1967 this, frame, params, &plugin)) {
1979 return plugin; 1968 return plugin;
1980 } 1969 }
1981 1970
(...skipping 3087 matching lines...) Expand 10 before | Expand all | Expand 10 after
5069 void RenderFrameImpl::RegisterMojoServices() { 5058 void RenderFrameImpl::RegisterMojoServices() {
5070 // Only main frame have ImageDownloader service. 5059 // Only main frame have ImageDownloader service.
5071 if (!frame_->parent()) { 5060 if (!frame_->parent()) {
5072 GetServiceRegistry()->AddService<image_downloader::ImageDownloader>( 5061 GetServiceRegistry()->AddService<image_downloader::ImageDownloader>(
5073 base::Bind(&ImageDownloaderImpl::CreateMojoService, 5062 base::Bind(&ImageDownloaderImpl::CreateMojoService,
5074 base::Unretained(this))); 5063 base::Unretained(this)));
5075 } 5064 }
5076 } 5065 }
5077 5066
5078 } // namespace content 5067 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698