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

Side by Side Diff: content/test/mock_render_process.h

Issue 111613005: Start removing support for in-process NPAPI plugins. This was a debugging mode and was only support… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 6 years, 11 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/renderer_main.cc ('k') | content/test/mock_render_process.cc » ('j') | 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 #ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_ 5 #ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_
6 #define CONTENT_TEST_MOCK_RENDER_PROCESS_H_ 6 #define CONTENT_TEST_MOCK_RENDER_PROCESS_H_
7 7
8 #include "content/renderer/render_process.h" 8 #include "content/renderer/render_process.h"
9 9
10 namespace content { 10 namespace content {
11 // This class is a mock of the child process singleton which we use during 11 // This class is a mock of the child process singleton which we use during
12 // running of the RenderView unit tests. 12 // running of the RenderView unit tests.
13 class MockRenderProcess : public RenderProcess { 13 class MockRenderProcess : public RenderProcess {
14 public: 14 public:
15 MockRenderProcess(); 15 MockRenderProcess();
16 virtual ~MockRenderProcess(); 16 virtual ~MockRenderProcess();
17 17
18 // RenderProcess implementation. 18 // RenderProcess implementation.
19 virtual skia::PlatformCanvas* GetDrawingCanvas( 19 virtual skia::PlatformCanvas* GetDrawingCanvas(
20 TransportDIB** memory, 20 TransportDIB** memory,
21 const gfx::Rect& rect) OVERRIDE; 21 const gfx::Rect& rect) OVERRIDE;
22 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE; 22 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE;
23 virtual bool UseInProcessPlugins() const OVERRIDE;
24 virtual void AddBindings(int bindings) OVERRIDE; 23 virtual void AddBindings(int bindings) OVERRIDE;
25 virtual int GetEnabledBindings() const OVERRIDE; 24 virtual int GetEnabledBindings() const OVERRIDE;
26 virtual TransportDIB* CreateTransportDIB(size_t size) OVERRIDE; 25 virtual TransportDIB* CreateTransportDIB(size_t size) OVERRIDE;
27 virtual void FreeTransportDIB(TransportDIB*) OVERRIDE; 26 virtual void FreeTransportDIB(TransportDIB*) OVERRIDE;
28 27
29 private: 28 private:
30 uint32 transport_dib_next_sequence_number_; 29 uint32 transport_dib_next_sequence_number_;
31 int enabled_bindings_; 30 int enabled_bindings_;
32 31
33 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess); 32 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess);
34 }; 33 };
35 34
36 } // namespace content 35 } // namespace content
37 36
38 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_ 37 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_main.cc ('k') | content/test/mock_render_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698