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

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

Issue 173466: Relanding with v8 fix.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | chrome/renderer/render_thread.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_THREAD_H_ 5 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_
6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 // Called by the Widget. The routing id must match the routing id of AddRoute. 35 // Called by the Widget. The routing id must match the routing id of AddRoute.
36 virtual void RemoveRoute(int32 routing_id); 36 virtual void RemoveRoute(int32 routing_id);
37 37
38 // Called by the Widget. Used to send messages to the browser. 38 // Called by the Widget. Used to send messages to the browser.
39 // We short-circuit the mechanim and handle the messages right here on this 39 // We short-circuit the mechanim and handle the messages right here on this
40 // class. 40 // class.
41 virtual bool Send(IPC::Message* msg); 41 virtual bool Send(IPC::Message* msg);
42 42
43 // Our mock thread doesn't do filtering. 43 // Our mock thread doesn't do filtering.
44 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) { 44 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) { }
45 } 45 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) { }
46 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) { 46
47 } 47 // Our mock thread doesn't deal with hidden and restored tabs.
48 virtual void WidgetHidden() { }
49 virtual void WidgetRestored() { }
50
48 51
49 ////////////////////////////////////////////////////////////////////////// 52 //////////////////////////////////////////////////////////////////////////
50 // The following functions are called by the test itself. 53 // The following functions are called by the test itself.
51 54
52 void set_routing_id(int32 id) { 55 void set_routing_id(int32 id) {
53 routing_id_ = id; 56 routing_id_ = id;
54 } 57 }
55 58
56 int32 opener_id() const { 59 int32 opener_id() const {
57 return opener_id_; 60 return opener_id_;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 IPC::Channel::Listener* widget_; 112 IPC::Channel::Listener* widget_;
110 113
111 // The last known good deserializer for sync messages. 114 // The last known good deserializer for sync messages.
112 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 115 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
113 116
114 // A mock printer device used for printing tests. 117 // A mock printer device used for printing tests.
115 scoped_ptr<MockPrinter> printer_; 118 scoped_ptr<MockPrinter> printer_;
116 }; 119 };
117 120
118 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 121 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698