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

Side by Side Diff: content/renderer/pepper/resource_converter.cc

Issue 23330008: Introduce MockResourceConverter to modularize testing of V8VarConverter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/pepper/resource_converter.h" 5 #include "content/renderer/pepper/resource_converter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 ResourceConverter::ResourceConverter() {
13 }
14
15 ResourceConverter::~ResourceConverter() { 12 ResourceConverter::~ResourceConverter() {
16 } 13 }
17 14
18 void ResourceConverter::ShutDown( 15 ResourceConverterImpl::ResourceConverterImpl() {
19 const base::Callback<void(bool)>& callback, 16 }
20 const scoped_refptr<base::MessageLoopProxy>& message_loop_proxy) { 17
18 ResourceConverterImpl::~ResourceConverterImpl() {
19 }
20
21 void ResourceConverterImpl::ShutDown(
22 const base::Callback<void(bool)>& callback) {
21 // TODO(raymes): Implement the creation of a browser resource host here. 23 // TODO(raymes): Implement the creation of a browser resource host here.
22 message_loop_proxy->PostTask(FROM_HERE, base::Bind(callback, true)); 24 base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback, true));
23 } 25 }
24 26
25 } // namespace content 27 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/resource_converter.h ('k') | content/renderer/pepper/v8_var_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698