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

Side by Side Diff: content/child/child_thread.h

Issue 226273005: Remove webkit's ResourceLoaderBridge interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASED Created 6 years, 7 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/child/blink_platform_impl.h ('k') | content/child/child_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_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_
6 #define CONTENT_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual ~ChildThread(); 72 virtual ~ChildThread();
73 virtual void Shutdown(); 73 virtual void Shutdown();
74 74
75 // IPC::Sender implementation: 75 // IPC::Sender implementation:
76 virtual bool Send(IPC::Message* msg) OVERRIDE; 76 virtual bool Send(IPC::Message* msg) OVERRIDE;
77 77
78 IPC::SyncChannel* channel() { return channel_.get(); } 78 IPC::SyncChannel* channel() { return channel_.get(); }
79 79
80 MessageRouter* GetRouter(); 80 MessageRouter* GetRouter();
81 81
82 // Creates a ResourceLoaderBridge.
83 // Tests can override this method if they want a custom loading behavior.
84 virtual webkit_glue::ResourceLoaderBridge* CreateBridge(
85 const RequestInfo& request_info);
86
87 // Allocates a block of shared memory of the given size and 82 // Allocates a block of shared memory of the given size and
88 // maps in into the address space. Returns NULL of failure. 83 // maps in into the address space. Returns NULL of failure.
89 // Note: On posix, this requires a sync IPC to the browser process, 84 // Note: On posix, this requires a sync IPC to the browser process,
90 // but on windows the child process directly allocates the block. 85 // but on windows the child process directly allocates the block.
91 base::SharedMemory* AllocateSharedMemory(size_t buf_size); 86 base::SharedMemory* AllocateSharedMemory(size_t buf_size);
92 87
93 // A static variant that can be called on background threads provided 88 // A static variant that can be called on background threads provided
94 // the |sender| passed in is safe to use on background threads. 89 // the |sender| passed in is safe to use on background threads.
95 static base::SharedMemory* AllocateSharedMemory(size_t buf_size, 90 static base::SharedMemory* AllocateSharedMemory(size_t buf_size,
96 IPC::Sender* sender); 91 IPC::Sender* sender);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 scoped_ptr<base::PowerMonitor> power_monitor_; 253 scoped_ptr<base::PowerMonitor> power_monitor_;
259 254
260 bool in_browser_process_; 255 bool in_browser_process_;
261 256
262 DISALLOW_COPY_AND_ASSIGN(ChildThread); 257 DISALLOW_COPY_AND_ASSIGN(ChildThread);
263 }; 258 };
264 259
265 } // namespace content 260 } // namespace content
266 261
267 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 262 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698