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

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

Issue 1292263003: ipc: Use a global for the process's attachment broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_message2
Patch Set: Comments from avi. Created 5 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
« no previous file with comments | « content/public/common/child_process_host.h ('k') | content/public/test/mock_render_thread.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_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 "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void SetIdleNotificationDelayInMs( 69 void SetIdleNotificationDelayInMs(
70 int64 idle_notification_delay_in_ms) override; 70 int64 idle_notification_delay_in_ms) override;
71 void UpdateHistograms(int sequence_number) override; 71 void UpdateHistograms(int sequence_number) override;
72 int PostTaskToAllWebWorkers(const base::Closure& closure) override; 72 int PostTaskToAllWebWorkers(const base::Closure& closure) override;
73 bool ResolveProxy(const GURL& url, std::string* proxy_list) override; 73 bool ResolveProxy(const GURL& url, std::string* proxy_list) override;
74 base::WaitableEvent* GetShutdownEvent() override; 74 base::WaitableEvent* GetShutdownEvent() override;
75 #if defined(OS_WIN) 75 #if defined(OS_WIN)
76 void PreCacheFont(const LOGFONT& log_font) override; 76 void PreCacheFont(const LOGFONT& log_font) override;
77 void ReleaseCachedFonts() override; 77 void ReleaseCachedFonts() override;
78 #endif 78 #endif
79 IPC::AttachmentBroker* GetAttachmentBroker() override;
80 ServiceRegistry* GetServiceRegistry() override; 79 ServiceRegistry* GetServiceRegistry() override;
81 80
82 ////////////////////////////////////////////////////////////////////////// 81 //////////////////////////////////////////////////////////////////////////
83 // The following functions are called by the test itself. 82 // The following functions are called by the test itself.
84 83
85 void set_routing_id(int32 id) { 84 void set_routing_id(int32 id) {
86 routing_id_ = id; 85 routing_id_ = id;
87 } 86 }
88 87
89 void set_surface_id(int32 id) { 88 void set_surface_id(int32 id) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 168
170 // Observers to notify. 169 // Observers to notify.
171 base::ObserverList<RenderProcessObserver> observers_; 170 base::ObserverList<RenderProcessObserver> observers_;
172 171
173 cc::TestSharedBitmapManager shared_bitmap_manager_; 172 cc::TestSharedBitmapManager shared_bitmap_manager_;
174 }; 173 };
175 174
176 } // namespace content 175 } // namespace content
177 176
178 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ 177 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « content/public/common/child_process_host.h ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698