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

Side by Side Diff: content/public/test/mock_render_thread.h

Issue 11363008: Fix for 128506: Random Chinese/Japanese characters are missing in documents printed via the syst... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 1 month 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) 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_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
7 7
8 #include <string>
9
8 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
9 #include "base/string16.h" 11 #include "base/string16.h"
10 #include "content/public/renderer/render_thread.h" 12 #include "content/public/renderer/render_thread.h"
11 #include "ipc/ipc_test_sink.h" 13 #include "ipc/ipc_test_sink.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
13 15
14 struct ViewHostMsg_CreateWindow_Params; 16 struct ViewHostMsg_CreateWindow_Params;
15 17
16 namespace IPC { 18 namespace IPC {
17 class MessageReplyDeserializer; 19 class MessageReplyDeserializer;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE; 66 virtual void RegisterExtension(v8::Extension* extension) OVERRIDE;
65 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE; 67 virtual void ScheduleIdleHandler(int64 initial_delay_ms) OVERRIDE;
66 virtual void IdleHandler() OVERRIDE; 68 virtual void IdleHandler() OVERRIDE;
67 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE; 69 virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE;
68 virtual void SetIdleNotificationDelayInMs( 70 virtual void SetIdleNotificationDelayInMs(
69 int64 idle_notification_delay_in_ms) OVERRIDE; 71 int64 idle_notification_delay_in_ms) OVERRIDE;
70 virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE; 72 virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE;
71 virtual void UpdateHistograms(int sequence_number) OVERRIDE; 73 virtual void UpdateHistograms(int sequence_number) OVERRIDE;
72 #if defined(OS_WIN) 74 #if defined(OS_WIN)
73 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; 75 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE;
76 virtual void PreCacheFontCharacters(const LOGFONT& log_font,
77 const std::wstring& str) OVERRIDE;
74 virtual void ReleaseCachedFonts() OVERRIDE; 78 virtual void ReleaseCachedFonts() OVERRIDE;
75 #endif 79 #endif
76 80
77 ////////////////////////////////////////////////////////////////////////// 81 //////////////////////////////////////////////////////////////////////////
78 // The following functions are called by the test itself. 82 // The following functions are called by the test itself.
79 83
80 void set_routing_id(int32 id) { 84 void set_routing_id(int32 id) {
81 routing_id_ = id; 85 routing_id_ = id;
82 } 86 }
83 87
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // The last known good deserializer for sync messages. 153 // The last known good deserializer for sync messages.
150 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 154 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
151 155
152 // A list of message filters added to this thread. 156 // A list of message filters added to this thread.
153 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_; 157 std::vector<scoped_refptr<IPC::ChannelProxy::MessageFilter> > filters_;
154 }; 158 };
155 159
156 } // namespace content 160 } // namespace content
157 161
158 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 162 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698