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

Side by Side Diff: chrome/renderer/mock_render_process.h

Issue 6864001: Move RenderProcess to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/render_process.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ 5 #ifndef CHROME_RENDERER_MOCK_RENDER_PROCESS_H_
6 #define CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ 6 #define CHROME_RENDERER_MOCK_RENDER_PROCESS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/renderer/render_process.h" 9 #include "content/renderer/render_process.h"
10 10
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(TransportDIB** memory, 19 virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory,
20 const gfx::Rect& rect); 20 const gfx::Rect& rect);
21 virtual void ReleaseTransportDIB(TransportDIB* memory); 21 virtual void ReleaseTransportDIB(TransportDIB* memory);
22 virtual bool UseInProcessPlugins() const; 22 virtual bool UseInProcessPlugins() const;
23 virtual bool HasInitializedMediaLibrary() const; 23 virtual bool HasInitializedMediaLibrary() const;
24 24
25 private: 25 private:
26 uint32 transport_dib_next_sequence_number_; 26 uint32 transport_dib_next_sequence_number_;
27 27
28 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess); 28 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess);
29 }; 29 };
30 30
31 #endif // CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ 31 #endif // CHROME_RENDERER_MOCK_RENDER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/render_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698