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

Side by Side Diff: content/renderer/browser_plugin/mock_browser_plugin.cc

Issue 12207144: Apply merge from @fsamuel. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « content/renderer/browser_plugin/mock_browser_plugin.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser_plugin/mock_browser_plugin.h" 5 #include "content/renderer/browser_plugin/mock_browser_plugin.h"
6 #include "content/renderer/render_process_impl.h" 6 #include "content/renderer/render_process_impl.h"
7 7
8 namespace content { 8 namespace content {
9 9
10 MockBrowserPlugin::MockBrowserPlugin( 10 MockBrowserPlugin::MockBrowserPlugin(
11 int id, 11 int id,
12 RenderViewImpl* render_view, 12 RenderViewImpl* render_view,
13 WebKit::WebFrame* frame, 13 WebKit::WebFrame* frame,
14 const WebKit::WebPluginParams& params) 14 const WebKit::WebPluginParams& params)
15 : BrowserPlugin(id, render_view, frame, params), 15 : BrowserPlugin(id, render_view, frame, params) {
16 transport_dib_next_sequence_number_(0) {
17 } 16 }
18 17
19 MockBrowserPlugin::~MockBrowserPlugin() {} 18 MockBrowserPlugin::~MockBrowserPlugin() {}
20 19
21 TransportDIB* MockBrowserPlugin::CreateTransportDIB(const size_t size) {
22 return TransportDIB::Create(size, transport_dib_next_sequence_number_++);
23 }
24
25 void MockBrowserPlugin::FreeDamageBuffer(TransportDIB** damage_buffer) {
26 DCHECK(*damage_buffer);
27 RenderProcess::current()->FreeTransportDIB(*damage_buffer);
28 *damage_buffer = NULL;
29 }
30
31 } // namespace content 20 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/mock_browser_plugin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698