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

Side by Side Diff: components/plugins/renderer/plugin_placeholder.cc

Issue 357203003: Move webpreferences.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 6 years, 5 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 | Annotate | Revision Log
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 "components/plugins/renderer/plugin_placeholder.h" 5 #include "components/plugins/renderer/plugin_placeholder.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/json/string_escape.h" 9 #include "base/json/string_escape.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 PluginPlaceholder::PluginPlaceholder(content::RenderFrame* render_frame, 44 PluginPlaceholder::PluginPlaceholder(content::RenderFrame* render_frame,
45 WebLocalFrame* frame, 45 WebLocalFrame* frame,
46 const WebPluginParams& params, 46 const WebPluginParams& params,
47 const std::string& html_data, 47 const std::string& html_data,
48 GURL placeholderDataUrl) 48 GURL placeholderDataUrl)
49 : content::RenderFrameObserver(render_frame), 49 : content::RenderFrameObserver(render_frame),
50 frame_(frame), 50 frame_(frame),
51 plugin_params_(params), 51 plugin_params_(params),
52 plugin_(WebViewPlugin::Create(this, 52 plugin_(WebViewPlugin::Create(this,
53 render_frame->GetRenderView(),
53 render_frame->GetWebkitPreferences(), 54 render_frame->GetWebkitPreferences(),
54 html_data, 55 html_data,
55 placeholderDataUrl)), 56 placeholderDataUrl)),
56 is_blocked_for_prerendering_(false), 57 is_blocked_for_prerendering_(false),
57 allow_loading_(false), 58 allow_loading_(false),
58 hidden_(false), 59 hidden_(false),
59 finished_loading_(false) {} 60 finished_loading_(false) {}
60 61
61 PluginPlaceholder::~PluginPlaceholder() {} 62 PluginPlaceholder::~PluginPlaceholder() {}
62 63
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 identifier_ = identifier; 246 identifier_ = identifier;
246 } 247 }
247 248
248 blink::WebLocalFrame* PluginPlaceholder::GetFrame() { return frame_; } 249 blink::WebLocalFrame* PluginPlaceholder::GetFrame() { return frame_; }
249 250
250 const blink::WebPluginParams& PluginPlaceholder::GetPluginParams() const { 251 const blink::WebPluginParams& PluginPlaceholder::GetPluginParams() const {
251 return plugin_params_; 252 return plugin_params_;
252 } 253 }
253 254
254 } // namespace plugins 255 } // namespace plugins
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698